/* MUT Exchange Manager - Apple-Inspired Premium Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation; /* Prevent double-tap zoom on mobile */
}

:root {
    /* Apple-inspired Dark Theme */
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-tertiary: #2c2c2e;
    --bg-elevated: #3a3a3c;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #98989d;
    --text-tertiary: #636366;

    /* Accent Colors - Dark Red Primary with Blue Secondary */
    --accent-primary: #b91c1c;
    --accent-primary-dark: #7f1d1d;
    --accent-primary-hover: #dc2626;
    --accent-secondary-blue: #0a84ff;
    --accent-success: #30d158;
    --accent-warning: #ff9f0a;
    --accent-danger: #ff453a;
    --accent-gold: #ffd60a;

    /* Borders & Dividers */
    --border-color: rgba(255, 255, 255, 0.1);
    --divider-color: rgba(255, 255, 255, 0.05);

    /* Shadows & Glows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.6);
    --glow-primary: 0 0 20px rgba(10, 132, 255, 0.3);

    /* Glassmorphism */
    --glass-bg: rgba(28, 28, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Prevent iOS zoom on input focus - minimum 16px font-size */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Navbar */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-green);
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--accent-green);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-logout {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: var(--accent-red);
    color: white;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Cards - Frosted Glass Effect */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Buttons - Premium iOS Style */
.btn {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(90deg, #000000 0%, #8B0000 50%, #000000 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #000000 0%, #a52a2a 50%, #000000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(127, 29, 29, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: none;
}

.btn-danger:hover {
    background: rgba(185, 28, 28, 0.1);
    border-color: var(--accent-primary-hover);
    color: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #000000 0%, #1a0a0a 50%, #4b1414 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.btn-success:hover {
    background: linear-gradient(135deg, #000000 0%, #4b1414 50%, var(--accent-primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(75, 20, 20, 0.6);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    border-radius: 10px;
}

/* Forms - Premium iOS Style */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    transition: background 0.2s;
}

/* Style select dropdown options for dark mode */
.form-select option,
select option {
    background: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
    padding: 0.5rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    background: var(--bg-elevated);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table thead {
    background: var(--bg-tertiary);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr {
    transition: background 0.3s;
}

.table tbody tr:hover {
    background: var(--bg-tertiary);
}

/* Mobile visibility utilities */
.mobile-hide {
    display: table-cell; /* Show on desktop */
}

/* Badges - iOS Style Pills */
.badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
}

.badge-success {
    background: rgba(48, 209, 88, 0.15);
    color: var(--accent-success);
    border-color: rgba(48, 209, 88, 0.2);
}

.badge-danger {
    background: rgba(255, 69, 58, 0.15);
    color: var(--accent-danger);
    border-color: rgba(255, 69, 58, 0.2);
}

.badge-warning {
    background: rgba(255, 159, 10, 0.15);
    color: var(--accent-warning);
    border-color: rgba(255, 159, 10, 0.2);
}

.badge-info {
    background: rgba(10, 132, 255, 0.15);
    color: var(--accent-secondary-blue);
    border-color: rgba(10, 132, 255, 0.2);
}

/* Stats Grid - Match Quick Actions Style */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Filter Bar - 2 Row Layout */
.filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
}

/* Row 1: Type and Platform selectors side by side */
.filter-bar .form-select {
    grid-column: auto;
}

/* Row 2: Search input spans 2 columns, clear button on right */
.filter-bar .form-input {
    grid-column: 1 / 3;
}

/* Clear button: Text link style, no box */
.filter-bar .btn {
    grid-column: 3;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    text-decoration: underline;
    font-weight: normal;
}

.filter-bar .btn:hover {
    background: transparent;
    color: var(--text-primary);
    transform: none;
    box-shadow: none;
}

/* Mobile: 2 columns, 2 rows for filters */
@media (max-width: 768px) {
    .filter-bar {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .filter-bar .form-select {
        grid-column: auto;
    }

    .filter-bar .form-input {
        grid-column: 1 / 3;
    }

    .filter-bar .btn {
        grid-column: 1 / 3;
        text-align: center;
        justify-self: stretch;
    }
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px var(--shadow);
    max-width: 450px;
    width: 100%;
    border: 1px solid var(--border-color);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: var(--text-secondary);
}

/* Alerts - iOS Style */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    border: 1px solid;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.9375rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(48, 209, 88, 0.12);
    border-color: rgba(48, 209, 88, 0.3);
    color: var(--accent-success);
}

.alert-danger {
    background: rgba(255, 69, 58, 0.12);
    border-color: rgba(255, 69, 58, 0.3);
    color: var(--accent-danger);
}

.alert-info {
    background: rgba(10, 132, 255, 0.12);
    border-color: rgba(10, 132, 255, 0.3);
    color: var(--accent-secondary-blue);
}

/* Loading Spinner - Red Theme */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-muted {
    color: var(--text-tertiary);
}

.text-success {
    color: var(--accent-success);
}

.text-danger {
    color: var(--accent-danger);
}

.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--text-secondary);
}

/* Accounts Grid - Responsive Card Layout */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .accounts-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (min-width: 1024px) {
    .accounts-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
}

/* Account Card - With Red Hover Glow */
.account-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-card:hover {
    border-color: rgba(185, 28, 28, 0.6);
    box-shadow: 0 12px 32px rgba(185, 28, 28, 0.1);
    transform: translateY(-2px);
}

.account-card-content {
    margin-bottom: 1.5rem;
}

/* Account Info Grid - 2 Columns */
.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    row-gap: 1.25rem;
}

.account-info-field {
    overflow: hidden;
}

.account-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 0.375rem;
}

.account-info-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-info-value .coin-icon {
    margin-right: 0.375rem;
}

.account-last-active {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* Account Actions Grid - 2x2 */
.account-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.account-actions-grid .btn {
    width: 100%;
    justify-content: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* App Layout - Mobile Nav Only */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar {
    display: none; /* Never show sidebar */
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-header h2 {
    color: var(--accent-green);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left-color: var(--accent-green);
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 1.5rem;
}

.nav-section-title {
    padding: 0.75rem 1.5rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.user-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.main-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-primary);
}

/* Simple Header - Clean & Minimal */
.simple-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.simple-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.simple-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    color: var(--text-primary);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Stats cards use same style defined above */

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.quick-action-btn {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    display: block;
}

.quick-action-btn:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow);
}

.quick-action-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.quick-action-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quick-action-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Activity Feed */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 3px solid var(--accent-green);
    transition: all 0.3s;
}

.activity-item:hover {
    background: var(--bg-primary);
    transform: translateX(5px);
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-body {
    padding: 0;
}

/* Top Navigation (All Screens) - Frosted Glass */
.mobile-nav {
    display: block;
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.mobile-menu-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    z-index: 1001;
    position: relative;
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 999;
    padding: 0.5rem;
}

.mobile-nav-menu.active {
    display: flex;
}

.mobile-nav-item {
    padding: 0.875rem 1.125rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.mobile-nav-item.active {
    background: rgba(185, 28, 28, 0.15);
    color: var(--accent-primary);
}

/* Responsive Tables - Convert to Cards on Mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .main-content {
        padding: 0.75rem;
        overflow-x: hidden;
    }

    /* Convert tables to cards on mobile */
    .table-container {
        overflow-x: visible;
    }

    table {
        display: block;
        border: none;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
    }

    tr {
        display: block;
        margin-bottom: 1rem;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
    }

    td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }

    td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.875rem;
        text-transform: uppercase;
    }

    /* Action buttons */
    td:last-child {
        display: flex;
        gap: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }

    td:last-child:before {
        display: none;
    }

    /* Stats grid - 2 columns, match quick actions */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .stat-value {
        font-size: 0.75rem;
    }

    /* Filter bar */
    .filter-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-bar .form-input,
    .filter-bar .form-select {
        width: 100%;
    }

    /* All cards - 2 columns */
    .card {
        padding: 0.75rem;
    }

    .card-header {
        padding: 0.75rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    /* Quick actions - 2 columns, match stats */
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-action-btn {
        padding: 0.75rem;
    }

    .quick-action-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .quick-action-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .quick-action-desc {
        font-size: 0.75rem;
    }

    /* Recent activity - 2 columns if multiple items */
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    /* Content header */
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    /* Header actions */
    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 1rem;
        max-height: 95vh;
    }

    .modal-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    /* Form groups */
    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-label {
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    /* Platform badges */
    .platform-badges {
        flex-wrap: wrap;
    }

    .platform-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Accounts table - convert to card layout on mobile */
    .table-container {
        overflow-x: visible;
    }

    /* Keep table visible but restructure it */
    #accounts-table {
        display: block;
        border: none;
    }

    /* Hide table headers on mobile */
    #accounts-table thead {
        display: none;
    }

    /* Show accounts as cards in 1 column on mobile */
    #accounts-tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #accounts-tbody tr {
        display: flex;
        flex-direction: column;
        background: var(--bg-tertiary);
        border: 2px solid var(--border-color);
        border-radius: 12px;
        padding: 1rem;
        gap: 0.75rem;
        margin-bottom: 0;
    }

    #accounts-tbody tr:hover {
        border-color: var(--accent-green);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px var(--shadow);
    }

    #accounts-tbody td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }

    #accounts-tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.75rem;
        display: block;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Hide Notes column on mobile */
    .mobile-hide {
        display: none !important;
    }

    /* Mobile layout: 2 columns per row */
    /* Row 1: Email | Coins */
    #accounts-tbody td:nth-child(1),
    #accounts-tbody td:nth-child(2) {
        display: inline-block;
        width: 48%;
        padding: 0.5rem 0;
        vertical-align: top;
    }

    #accounts-tbody td:nth-child(1) {
        padding-right: 0.5rem;
    }

    /* Row 2: Type | Platform */
    #accounts-tbody td:nth-child(3),
    #accounts-tbody td:nth-child(4) {
        display: inline-block;
        width: 48%;
        padding: 0.5rem 0;
        vertical-align: top;
    }

    #accounts-tbody td:nth-child(3) {
        padding-right: 0.5rem;
    }

    /* Row 3: Status (full width) */
    #accounts-tbody td:nth-child(5) {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    /* Improve actions cell for mobile */
    .actions-cell {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding-top: 1rem !important;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }

    .actions-cell::before {
        display: none !important;
    }

    /* Make action buttons more touch-friendly */
    #accounts-tbody .actions-cell .btn {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
        min-height: 44px; /* iOS touch target size */
        width: 100%;
        white-space: nowrap;
    }

    /* Platform badges - better mobile display */
    .platform-badges {
        display: flex;
        gap: 0.35rem;
        flex-wrap: wrap;
    }

    .platform-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }

    /* Status badges - larger on mobile */
    .badge {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }

    .content-header h1 {
        font-size: 1.25rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.65rem 0.875rem;
    }

    .card {
        padding: 0.875rem;
    }

    .modal-content {
        padding: 1.25rem;
    }
}

/* ==========================================
   DASHBOARD ACTION CARDS & STAT ITEMS
   ========================================== */

/* Action Cards (2x2 Grid) */
.action-card {
    background: #1f1f1f;
    color: #d1d5db;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 10rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-card:hover {
    background: #2a2a2a;
    transform: scale(1.05);
}

.action-card-title {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

/* Stat Items (List) */
.stat-item {
    background: #1f1f1f;
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.stat-item:hover {
    background: #2a2a2a;
}
