/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-base: #09090b;
    --bg-card: rgba(18, 18, 24, 0.75);
    --bg-card-hover: rgba(26, 26, 36, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: #6366f1;
    
    /* Brand Colors */
    --color-primary: #6366f1;
    --color-primary-hover: #4f46e5;
    --color-primary-glow: rgba(99, 102, 241, 0.25);
    --color-cyan: #06b6d4;
    --color-cyan-glow: rgba(6, 182, 212, 0.2);
    
    /* Status Colors */
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-error: #ef4444;
    --color-error-bg: rgba(239, 68, 68, 0.1);
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.15);
    
    /* Text Colors */
    --text-high: #f4f4f5;
    --text-medium: #a1a1aa;
    --text-muted: #71717a;
    
    /* Typography */
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-base);
    color: var(--text-high);
    font-family: var(--font-family);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

/* ==========================================================================
   BACKGROUND GLOWS
   ========================================================================== */
.glow-bg-1 {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: drift 20s ease-in-out infinite;
}

.glow-bg-2 {
    position: fixed;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-cyan-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: drift 25s ease-in-out infinite reverse;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

/* ==========================================================================
   MODAL WINDOW STYLES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn var(--transition-normal);
}

.modal-overlay.hidden-field {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp var(--transition-normal);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-high);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.modal-body {
    text-align: center;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-url {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.modal-url a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
}

.modal-url a:hover {
    color: var(--color-primary-hover);
    border-bottom-color: var(--color-primary);
}

.modal-subtitle {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MAIN CONTAINER & LAYOUT
   ========================================================================== */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
    border-radius: var(--radius-md);
    font-size: 1.75rem;
    color: white;
}

.app-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.app-subtitle {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.api-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-medium);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.online {
    background: var(--color-success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-dot.offline {
    background: var(--color-error);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    flex: 1;
    margin-bottom: 2rem;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.right-panel {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   TAB NAVIGATION
   ========================================================================== */
.tabs-nav {
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    position: relative;
    bottom: -1px;
}

.tab-btn:hover {
    color: var(--text-high);
}

.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ==========================================================================
   TAB CONTENT
   ========================================================================== */
.tab-content {
    animation: slideDown var(--transition-normal);
}

.tab-content.hidden-field {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   FORMS & INPUT ELEMENTS
   ========================================================================== */
.control-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-high);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-high);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-high);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color-focus);
    box-shadow: 0 0 12px var(--color-primary-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group:last-child {
    margin-bottom: 0;
}

.flex-end {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.select-wrapper {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-container label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-high);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #4f46e5);
    border: none;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-primary-hover), #4f46e5);
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.btn-group {
    display: flex;
    gap: 0.75rem;
}

.input-with-action {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.input-with-action input {
    flex: 1;
}

.input-with-action .btn {
    flex-shrink: 0;
}

/* ==========================================================================
   PROGRESS & STATUS
   ========================================================================== */
.progress-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.progress-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.progress-text {
    font-weight: 600;
    color: var(--text-high);
}

.progress-percent {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-subtext {
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* ==========================================================================
   RESULTS & FILTERS
   ========================================================================== */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.results-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.results-filter-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-primary), #4f46e5);
    border: none;
    color: white;
}

.results-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.result-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.result-count strong {
    color: var(--text-high);
    font-weight: 600;
}

.results-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.export-menu {
    position: relative;
}

.export-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 100;
    display: none;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.export-menu.open .export-dropdown {
    display: block;
}

.export-dropdown button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text-high);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.export-dropdown button:last-child {
    border-bottom: none;
}

.export-dropdown button:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

.results-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--text-medium);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.results-list {
    list-style: none;
    max-height: 600px;
    overflow-y: auto;
}

.results-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.results-list li:hover {
    background: rgba(99, 102, 241, 0.05);
}

.results-list li.hidden-field {
    display: none;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.item-index {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 40px;
}

.item-iban {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: var(--text-high);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-primary);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-offline-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.badge-online-success {
    background: rgba(6, 182, 212, 0.15);
    color: var(--color-cyan);
}

.badge-error-status {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   VALIDATION RESULT CARD
   ========================================================================== */
.validation-result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    animation: slideDown var(--transition-normal);
}

.validation-result-card.hidden-field {
    display: none;
}

.result-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.result-badge {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-primary);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    width: fit-content;
}

.result-badge.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.result-badge.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
}

.result-badge.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.result-iban-title {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-weight: 500;
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-high);
    font-weight: 500;
    text-align: right;
}

.text-success {
    color: var(--color-success);
}

.text-error {
    color: var(--color-error);
}

.text-warning {
    color: var(--color-warning);
}

.text-muted {
    color: var(--text-muted);
}

/* ==========================================================================
   ADDRESS RESULT CARD
   ========================================================================== */
.address-result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    animation: slideDown var(--transition-normal);
}

.address-result-card.hidden-field {
    display: none;
}

.address-result-card .form-group {
    margin-bottom: 0.85rem;
}

.address-result-card .form-group:last-of-type {
    margin-bottom: 0;
}

.address-result-card label {
    margin-bottom: 0.25rem;
}

.address-result-card input {
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.address-result-card .input-with-action .btn {
    min-height: 38px;
    min-width: 38px;
}

/* ==========================================================================
   NOTIFICATIONS
   ========================================================================== */
.notification-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-high);
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideInRight var(--transition-normal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.notification.success {
    border-color: var(--color-success);
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.notification.error {
    border-color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.notification.warning {
    border-color: var(--color-warning);
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.notification.info {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-medium);
    font-size: 0.85rem;
    line-height: 1.6;
}

.app-footer a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.app-footer a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

/* Tablet (768px and above) */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .results-list {
        max-height: 400px;
    }

    .results-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .results-actions {
        margin-left: 0;
        justify-content: flex-start;
    }

    .results-info {
        order: -1;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .api-status {
        width: 100%;
        justify-content: flex-start;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .app-title {
        font-size: 1.35rem;
    }

    .app-subtitle {
        font-size: 0.8rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .left-panel {
        gap: 1rem;
    }

    .right-panel {
        gap: 1rem;
    }

    .control-card {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.65rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .tabs-nav {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .tab-btn {
        padding: 0.6rem 0.85rem;
        font-size: 0.85rem;
    }

    .tab-btn i {
        display: none;
    }

    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem;
    }

    .validation-result-card,
    .address-result-card {
        padding: 1rem;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-value {
        justify-content: flex-start;
        text-align: left;
    }

    .results-container {
        max-height: none;
    }

    .results-list {
        max-height: 350px;
    }

    .results-list li {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .item-left {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .item-iban {
        width: 100%;
        font-size: 0.85rem;
    }

    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .results-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .results-filter-container {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
    }

    .results-info {
        order: -1;
        flex-direction: column;
        gap: 0.5rem;
    }

    .results-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .results-actions .btn {
        flex: 1;
        min-height: 36px;
    }

    .notification-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .notification {
        width: 100%;
    }

    .progress-container {
        padding: 1rem;
    }

    .progress-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .app-footer {
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
        font-size: 0.8rem;
    }

    /* Modal adjustments for mobile */
    .modal-content {
        max-width: 95%;
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-url {
        font-size: 1.1rem;
    }

    .modal-subtitle {
        font-size: 0.95rem;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .app-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .app-title {
        font-size: 1.15rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .tab-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.6rem 0.85rem;
        font-size: 0.85rem;
    }

    .filter-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }

    .results-list li {
        padding: 0.6rem;
    }

    .item-index {
        min-width: 30px;
        font-size: 0.85rem;
    }

    .item-iban {
        font-size: 0.75rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .detail-row {
        gap: 0.35rem;
    }

    .detail-label,
    .detail-value {
        font-size: 0.85rem;
    }

    .notification-container {
        bottom: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
    }

    .modal-content {
        padding: 1.25rem;
    }

    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .modal-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .modal-url {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .main-content {
        margin-bottom: 0.5rem;
    }

    .left-panel,
    .right-panel {
        gap: 0.75rem;
    }

    .results-list {
        max-height: 300px;
    }
}

.hidden-field {
    display: none !important;
}
