:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-card: #1e1e1e;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-blue: #0ea5e9;
    --accent-blue-hover: #0284c7;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --accent-purple: #a855f7;
    --border-color: #2a2a2a;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-blue-hover);
}

/* Header */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo img {
    height: 32px;
    width: 32px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
}

.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 200px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-hover);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    overflow-x: hidden;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-hover);
}

.btn-icon {
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.btn-danger {
    background-color: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Search Bar */
.search-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    flex: 1;
    min-width: 0;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
    padding: 0.25rem;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box i {
    color: var(--text-muted);
}

/* Subscription List */
.subscription-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subscription-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.subscription-item:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent-blue);
}

.sub-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background-color: var(--bg-tertiary);
    padding: 8px;
}

.sub-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.sub-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
    flex: 1;
    min-width: 120px;
}

.sub-cycle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    background-color: var(--bg-tertiary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    text-align: center;
}

.sub-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: left;
}

.sub-date-full {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: left;
}

.sub-date.upcoming {
    color: var(--accent-yellow);
}

.sub-date.overdue {
    color: var(--accent-red);
}

.sub-payment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-icon {
    width: 32px;
    height: 20px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.sub-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
}

.sub-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.sub-actions .btn-icon {
    padding: 0.5rem;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sub-actions .btn-icon:hover {
    background-color: var(--accent-blue);
    color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Logo Upload */
.logo-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background-color: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--accent-blue);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Statistics */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.blue {
    background-color: rgba(14, 165, 233, 0.15);
    color: var(--accent-blue);
}

.stat-icon.green {
    background-color: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.stat-icon.red {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.stat-icon.yellow {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
}

.stat-icon.purple {
    background-color: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
}

.nav-tab:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.nav-tab.active {
    background-color: var(--accent-blue);
    color: white;
}

/* Table */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:hover td {
    background-color: var(--bg-hover);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-blue {
    background-color: rgba(14, 165, 233, 0.15);
    color: var(--accent-blue);
}

.badge-green {
    background-color: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.badge-red {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.badge-yellow {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
}

/* Alert */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 700;
}

.auth-logo h1 span {
    color: var(--accent-blue);
}

.auth-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-title p {
    color: var(--text-secondary);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

/* Settings Page */
.settings-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent-blue);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Categories & Payment Methods */
.category-item, .payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.category-info, .payment-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Charts */
.chart-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left: 4px solid var(--accent-green);
}

.toast-error {
    border-left: 4px solid var(--accent-red);
}

/* Sidebar (for mobile) */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 1.5rem;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    list-style: none;
    margin-top: 2rem;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-menu a.active {
    color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 1024px) {
    .sub-cycle, .sub-payment, .sub-date-full {
        display: none !important;
    }
    
    .cards-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem !important;
        max-width: 100% !important;
    }
    
    .header {
        padding: 0.5rem !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .nav-tabs {
        order: 3 !important;
        width: 100% !important;
        justify-content: center !important;
        gap: 0.25rem !important;
        flex-wrap: wrap !important;
    }
    
    .nav-tab {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    
    .logo {
        font-size: 1.1rem !important;
    }
    
    .logo img {
        height: 24px !important;
        width: 24px !important;
    }
    
    .logo span {
        display: none !important;
    }
    
    .action-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    .action-bar h2 {
        text-align: center !important;
        font-size: 1.25rem !important;
    }
    
    .search-container {
        width: 100% !important;
        flex-wrap: wrap !important;
    }
    
    .search-box {
        min-width: unset !important;
        flex: 1 !important;
        width: 100% !important;
    }
    
    .subscription-item {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .sub-date, .sub-date-full, .sub-cycle, .sub-payment {
        display: none !important;
    }
    
    .sub-logo, .sub-logo-placeholder {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }
    
    .sub-name {
        font-size: 0.9rem !important;
    }
    
    .sub-price {
        font-size: 0.9rem !important;
    }
    
    .sub-actions {
        gap: 0.25rem !important;
    }
    
    .sub-actions .btn-icon {
        padding: 0.4rem !important;
    }
    
    .cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .modal {
        margin: 0.5rem !important;
        max-height: calc(100vh - 1rem) !important;
        width: calc(100% - 1rem) !important;
    }
    
    .modal-body {
        padding: 1rem !important;
    }
    
    .modal-footer {
        padding: 1rem !important;
        flex-wrap: wrap !important;
    }
    
    .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
    
    .settings-section {
        padding: 1rem !important;
    }
    
    .settings-title {
        font-size: 1rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Statistics page */
    .cards-grid[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
    
    /* Logo upload */
    .logo-upload {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-upload-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .logo-upload-actions .btn {
        flex: 1 !important;
        min-width: 100px !important;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.4rem !important;
    }
    
    .user-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
    
    .nav-tabs {
        gap: 0.15rem !important;
    }
    
    .nav-tab {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    .subscription-item {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
    }
    
    .sub-name {
        width: 100% !important;
        text-align: center !important;
    }
    
    .sub-logo, .sub-logo-placeholder {
        margin: 0 auto !important;
        width: 36px !important;
        height: 36px !important;
    }
    
    .sub-actions {
        justify-content: center !important;
        width: 100% !important;
    }
    
    .sub-price {
        font-weight: 700 !important;
    }
    
    .action-bar .btn {
        width: 100% !important;
    }
    
    .search-container {
        flex-direction: column !important;
    }
    
    .search-container .btn-icon {
        display: none !important;
    }
    
    .form-control, .form-select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .modal-header {
        padding: 0.75rem !important;
    }
    
    .modal-title {
        font-size: 1rem !important;
    }
    
    .modal-close {
        font-size: 1.25rem !important;
    }
    
    /* Category items */
    .category-item {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }
    
    .category-actions {
        justify-content: center !important;
    }
    
    /* Settings */
    .form-row {
        gap: 1rem !important;
    }
    
    /* Stats cards */
    .stat-icon {
        width: 36px !important;
        height: 36px !important;
    }
    
    .card-title {
        font-size: 0.8rem !important;
    }
    
    .card-value {
        font-size: 1.25rem !important;
    }
    
    .card-subtitle {
        font-size: 0.75rem !important;
    }
    
    /* Auth pages */
    .auth-container {
        padding: 1rem !important;
    }
    
    .auth-box {
        padding: 1.5rem !important;
    }
    
    .auth-logo h1 {
        font-size: 1.5rem;
    }
    
    .auth-logo img {
        width: 48px;
        height: 48px;
    }
    
    .auth-title h2 {
        font-size: 1.25rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
