* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* ============== SIDEBAR ============== */
.sidebar {
    background: #000000;
    color: #fff;
    width: 248px;
    min-height: 100vh;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.sidebar-container {
    height: 100vh;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0.35rem;
    flex-wrap: nowrap;
}

.nav-menu a {
    color: #cccccc;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
}

.nav-menu a .material-icons {
    font-size: 1.2rem;
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ============== MATERIAL ICONS ============== */
.material-icons {
    font-size: 1.25rem;
    vertical-align: middle;
    margin-right: 0.3rem;
    user-select: none;
}

.btn .material-icons,
.badge .material-icons,
.stat-icon .material-icons,
.filter-btn .material-icons,
.tab-button .material-icons {
    font-size: 1.2rem;
    margin-right: 0.4rem;
}

/* ============== CONTAINER ============== */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

.has-sidebar .container {
    margin-left: 248px;
    max-width: none;
    padding: 2rem;
}

.auth-body .container {
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.page-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ============== DASHBOARD ============== */
.page-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #000;
    padding-bottom: 1rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: #1a1a1a;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.stat-content h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
}

.stat-subtitle {
    font-size: 0.85rem;
    color: #999;
}

/* ============== DASHBOARD GRID ============== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
}

.dashboard-card h2 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
}

.dashboard-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.section-header.compact {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.section-header.compact h2 {
    font-size: 1rem;
    color: #111827;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 0.9rem;
}

.metric-strip.two-up {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.metric-tile,
.retention-tile {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.metric-tile .metric-label,
.retention-tile span {
    display: block;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-tile strong,
.retention-tile strong {
    display: block;
    color: #111827;
    font-size: 1.65rem;
    margin-top: 0.35rem;
}

.metric-tile small,
.retention-tile small {
    color: #6b7280;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(560px, 1.15fr) minmax(360px, 0.85fr);
    gap: 1.25rem;
}

.retention-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 0.75rem;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links a {
    color: #0066cc;
    text-decoration: none;
    display: block;
    padding: 0.75rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.quick-links a:hover {
    background-color: #f0f0f0;
    color: #000;
}

.metrics-list {
    list-style: none;
}

.metrics-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.metrics-list li:last-child {
    border-bottom: none;
}

.metric-label {
    color: #666;
    font-weight: 500;
}

.metric-value {
    font-weight: bold;
    color: #000;
}

/* ============== TABLES ============== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.data-table thead {
    background-color: #f0f0f0;
    border-bottom: 2px solid #000;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.data-table tbody tr:hover {
    background-color: #f9f9f9;
}

.data-table tbody tr:last-child td {
    border-bottom: 1px solid #e0e0e0;
}

/* ============== BADGES ============== */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background-color: #e0e0e0;
    color: #000;
}

.badge-success {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.badge-warning {
    background-color: #fff3e0;
    color: #e65100;
}

.badge-info {
    background-color: #e3f2fd;
    color: #0d47a1;
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-info {
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid #000;
}

.btn-info:hover {
    background-color: #000;
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.btn-secondary:hover {
    background-color: #000;
    color: #fff;
}

/* ============== SEARCH BAR ============== */
.search-bar {
    margin-bottom: 1.5rem;
}

#userSearch {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#userSearch:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* ============== USER PROFILE ============== */
.user-profile {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
}

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000;
}

.profile-pic-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
}

.profile-info h1 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.email {
    color: #666;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-stats .stat {
    color: #666;
}

.profile-stats .stat strong {
    color: #000;
    font-size: 1.2rem;
}

/* ============== ALERTS ============== */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-info {
    background-color: #e3f2fd;
    border-left-color: #1976d2;
    color: #1565c0;
}

.alert-success {
    background-color: #e8f5e9;
    border-left-color: #388e3c;
    color: #2e7d32;
}

.alert-warning {
    background-color: #fff3e0;
    border-left-color: #f57c00;
    color: #e65100;
}

.alert-error {
    background-color: #ffebee;
    border-left-color: #c62828;
    color: #b71c1c;
}

/* ============== FILTER BUTTONS ============== */
.filter-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.dashboard-chart {
    margin-bottom: 2rem;
    height: 380px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e0e0;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.range-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.range-toolbar .filter-buttons {
    margin-bottom: 0;
}

.date-range-form {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.date-range-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #666;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.date-range-form input[type="date"] {
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    font: inherit;
    color: #000;
}

.date-range-form input[type="date"]:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.range-summary {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* ============== FOOTER ============== */
.footer {
    background-color: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.has-sidebar .footer {
    margin-left: 248px;
}

.footer p {
    margin: 0;
}

/* ============== LOGIN ============== */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f5f7fb;
}

.login-card {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.login-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1.25rem;
}

.login-card h1 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.login-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.login-form label {
    font-weight: 600;
    color: #374151;
}

.login-form input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
    font: inherit;
}

.login-form .btn {
    justify-content: center;
    margin-top: 0.5rem;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: static;
    }

    .sidebar-container {
        height: auto;
        padding: 1rem;
    }

    .logo {
        justify-content: flex-start;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .has-sidebar .container,
    .has-sidebar .footer {
        margin-left: 0;
    }

    .container {
        padding: 0 1rem;
    }

    .page-content,
    .dashboard {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .metric-strip,
    .metric-strip.two-up,
    .two-column-section,
    .retention-grid {
        grid-template-columns: 1fr;
    }

    .range-toolbar,
    .date-range-form {
        align-items: stretch;
        flex-direction: column;
    }

    .date-range-form .btn,
    .date-range-form input[type="date"] {
        width: 100%;
    }
}

/* ============== CHARTS ============== */
.chart-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

canvas {
    max-height: 300px;
}

/* ============== TABS ============== */
.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #000;
}

.tab-button.active {
    color: #000;
    border-bottom-color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============== MODERN USER PROFILE ============== */
.profile-header {
    position: relative;
    margin-bottom: 2rem;
}

.profile-header-bg {
    height: 150px;
    background: #000000;
    border-radius: 12px 12px 0 0;
}

.profile-header-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.profile-pic-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    border: 4px solid #fff;
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 2rem;
    color: #000000;
    margin-bottom: 0.5rem;
}

.email {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.profile-status {
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ============== PROFILE METADATA ============== */
.profile-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.meta-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.meta-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.meta-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 1.5rem;
}

.meta-content {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* ============== SECTION CARDS ============== */
.section-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============== VIDEOS GRID ============== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.video-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.video-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.video-thumbnail iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    font-size: 2rem;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.video-date {
    font-size: 0.85rem;
    color: #999;
}

/* ============== GIFT CARDS GRID ============== */
.gift-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gift-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    color: #111827;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gift-card::before {
    display: none;
}

.gift-card:hover {
    transform: none;
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.gift-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    gap: 0.75rem;
}

.gift-card-header i {
    font-size: 2rem;
}

.gift-card-status {
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #047857;
    text-transform: capitalize;
}

.gift-card-status.used,
.gift-card-status.rejected,
.gift-card-status.cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

.gift-card-image {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.gift-card-content {
    position: relative;
    z-index: 1;
}

.gift-value {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.gift-type {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.gift-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.gift-card-meta span {
    background: #f3f4f6;
    color: #374151;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: capitalize;
}

.gift-date {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ============== ACTIVITY TIMELINE ============== */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: absolute;
    left: -3.5rem;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.activity-header h3 {
    font-size: 1rem;
    color: #2c3e50;
}

.activity-time {
    font-size: 0.85rem;
    color: #999;
}

.activity-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ============== BADGE VARIANTS ============== */
.badge-success-small,
.badge-warning-small {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-success-small {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-warning-small {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* ============== ANALYTICS GRID ============== */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.chart-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    min-height: 360px;
}

.chart-card h2,
.chart-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chart-card canvas {
    width: 100% !important;
    height: 260px !important;
}

.analytics-summary {
    margin-bottom: 0;
}

.analytics-kpis {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.analytics-kpi-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe3ef;
    align-items: flex-start;
}

.analytics-kpi-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
}

.analytics-grid-featured {
    grid-template-columns: minmax(420px, 1.2fr) minmax(320px, 1fr) minmax(320px, 1fr);
}

.chart-card-featured {
    border-color: #cbd5e1;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.giftcard-grid {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.chart-empty {
    min-height: 260px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.chart-empty .material-icons {
    font-size: 2rem;
    margin-right: 0;
    color: #9ca3af;
}

.stat-value-small {
    font-size: 1.35rem;
}

.feedback-summary {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.feedback-list {
    display: grid;
    gap: 1rem;
}

.feedback-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feedback-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feedback-card h2 {
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.35rem;
}

.feedback-meta {
    color: #6b7280;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.feedback-meta .material-icons {
    font-size: 1rem;
    margin-right: 0;
}

.feedback-card time {
    color: #6b7280;
    font-size: 0.85rem;
    white-space: nowrap;
}

.feedback-message {
    color: #111827;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

/* ============== USER DETAIL POLISH ============== */
.user-detail-page {
    background: #f8fafc;
    box-shadow: none;
    padding: 0;
}

.user-detail-page .user-profile {
    display: grid;
    gap: 1.25rem;
}

.user-detail-page .profile-header {
    margin-bottom: 0;
}

.user-detail-page .profile-header-content {
    margin-top: 0;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    align-items: center;
    padding: 1.5rem;
}

.user-detail-page .profile-info h1 {
    color: #fff;
    margin-bottom: 0.35rem;
}

.user-detail-page .profile-info .email {
    color: #d1d5db;
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.user-detail-page .profile-pic,
.user-detail-page .profile-pic-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.user-detail-page .profile-pic-placeholder {
    background: #1f2937;
}

.status-badge.neutral {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

.user-detail-page .profile-meta,
.profile-stats-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 0.9rem;
    margin-bottom: 0;
}

.user-detail-page .meta-card,
.user-detail-page .stat-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
    padding: 1rem;
    background: #fff;
}

.user-detail-page .meta-card:hover,
.user-detail-page .stat-card:hover {
    transform: none;
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.user-detail-page .meta-icon,
.user-detail-page .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
}

.user-detail-page .meta-value,
.user-detail-page .stat-value {
    color: #111827;
    font-size: 1.45rem;
}

.user-detail-page .section-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 0;
    padding: 1.25rem;
}

.user-detail-page .section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e5e7eb;
}

.user-detail-page .section-header h2 {
    font-size: 1.1rem;
    color: #111827;
}

.user-detail-page .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.user-detail-page .video-card {
    box-shadow: none;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.user-detail-page .video-card:hover {
    transform: none;
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.user-detail-page .video-thumbnail {
    height: 150px;
}

.activity-list {
    display: grid;
    gap: 0.55rem;
}

.activity-row {
    display: grid;
    grid-template-columns: 36px minmax(140px, 1fr) minmax(170px, auto) minmax(120px, auto) minmax(135px, auto);
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.activity-row:hover {
    border-color: #cbd5e1;
    background: #f9fafb;
}

.activity-status-dot {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #6b7280;
}

.activity-status-dot.completed {
    background: #059669;
}

.activity-status-dot.pending {
    background: #d97706;
}

.activity-status-dot .material-icons {
    font-size: 1.1rem;
    margin-right: 0;
}

.activity-main h3 {
    font-size: 0.98rem;
    color: #111827;
    margin-bottom: 0;
    text-transform: capitalize;
}

.activity-row .activity-meta {
    gap: 0.75rem;
    color: #4b5563;
    font-size: 0.86rem;
    flex-wrap: nowrap;
}

.activity-result {
    justify-self: start;
}

.activity-time {
    color: #6b7280;
    font-size: 0.86rem;
    white-space: nowrap;
}

.mobile-time {
    display: none;
}

.video-thumbnail video,
.video-thumbnail iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.video-link {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
}

.section-header h2,
.activity-meta,
.video-date,
.gift-date,
.profile-info .email,
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-success-small .material-icons,
.badge-warning-small .material-icons,
.activity-meta .material-icons,
.video-date .material-icons,
.gift-date .material-icons {
    font-size: 1rem;
    margin-right: 0;
}

@media (max-width: 768px) {
    .analytics-grid,
    .giftcard-grid {
        grid-template-columns: 1fr;
    }

    .analytics-kpis,
    .feedback-summary {
        grid-template-columns: 1fr;
    }

    .chart-card {
        min-height: 330px;
        padding: 1rem;
    }

    .chart-card canvas,
    .chart-empty {
        height: 230px !important;
        min-height: 230px;
    }

    .feedback-card-header {
        flex-direction: column;
    }

    .user-detail-page .profile-header-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-detail-page .profile-meta,
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .activity-row {
        grid-template-columns: 32px 1fr;
        align-items: flex-start;
    }

    .activity-row .activity-meta,
    .activity-result {
        grid-column: 2;
    }

    .desktop-time {
        display: none;
    }

    .mobile-time {
        display: block;
        margin-top: 0.2rem;
    }
}
