/** Rameez Scripts - Navy Blue Theme */

:root {
    --navy-primary: #001f3f;
    --navy-dark: #001529;
    --navy-light: #003366;
    --navy-accent: #0074D9;
    --navy-hover: #002a52;
    --success: #34a853;
    --warning: #fbbc04;
    --danger: #ea4335;
}

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

html { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

input, select, textarea { font-size: 16px !important; touch-action: manipulation; }

/* ====== Auth Pages (Login/Register/Google Complete) ====== */
.auth-body {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 25%, var(--navy-light) 50%, var(--navy-dark) 75%, var(--navy-primary) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: visible;
    width: 50vw;
    min-width: 450px;
    animation: fadeSlideIn 0.3s ease-out;
}

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

.auth-header {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-accent) 100%);
    padding: 30px;
    text-align: center;
    color: white;
    border-radius: 4px 4px 0 0;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    font-size: 14px;
    opacity: 0.9;
}

.auth-google-info {
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e9ecef;
}

.auth-google-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.auth-google-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6c757d;
    flex-shrink: 0;
}

.auth-google-details h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.auth-google-details p {
    color: #666;
    font-size: 14px;
}

.auth-form-container {
    padding: 30px;
}

.auth-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 3px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #f5c6cb;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-accent) 100%);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 31, 63, 0.4);
    background: linear-gradient(135deg, var(--navy-hover) 0%, var(--navy-accent) 100%);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-cancel-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.auth-cancel-link:hover {
    color: var(--danger);
}

.helper-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* ====== Login ====== */
.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%); }
.login-box { background: white; padding: 50px 40px; border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); width: 100%; max-width: 420px; text-align: center; }
.login-logo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 25px; border: 3px solid var(--navy-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.login-box h2 { margin-bottom: 35px; color: var(--navy-primary); font-size: 26px; font-weight: 600; }

/* ====== Layout ====== */
.app-container { display: flex; height: 100vh; }

/* ====== Sidebar ====== */
.sidebar { width: 260px; background: linear-gradient(180deg, var(--navy-primary) 0%, var(--navy-dark) 100%); color: white; overflow-y: auto; height: 100vh; display: flex; flex-direction: column; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.sidebar-user-info { padding: 24px 20px; background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
.sidebar-user-name { font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.sidebar-user-role { font-size: 13px; color: rgba(255,255,255,0.8); padding: 5px 12px; background: rgba(0,116,217,0.3); border-radius: 4px; display: inline-block; text-transform: capitalize; }
.sidebar-menu-section { flex: 1; padding: 20px 16px; }
.sidebar-menu-title { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.5); padding: 0 12px; }
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 4px; }
.sidebar-menu button { width: 100%; text-align: left; padding: 14px 16px; background: transparent; border: none; color: rgba(255,255,255,0.9); cursor: pointer; border-radius: 3px; font-size: 15px; transition: all 0.3s; display: flex; align-items: center; gap: 14px; font-weight: 500; }
.sidebar-menu button:hover { background: rgba(255,255,255,0.1); color: white; transform: translateX(4px); }
.sidebar-menu button.active { background: var(--navy-accent); color: white; box-shadow: 0 4px 12px rgba(0,116,217,0.3); }
.sidebar-menu i { width: 20px; text-align: center; font-size: 18px; }
.sidebar-logout { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.15); }
.sidebar-logout button { width: 100%; padding: 14px 16px; background: linear-gradient(135deg, rgba(234,67,53,0.2) 0%, rgba(234,67,53,0.3) 100%); border: 1px solid rgba(234,67,53,0.4); color: white; cursor: pointer; border-radius: 3px; font-size: 15px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.sidebar-logout button:hover { background: linear-gradient(135deg, rgba(234,67,53,0.4) 0%, rgba(234,67,53,0.5) 100%); transform: translateY(-2px); }

/* ====== Main Content ====== */
.main-content { flex: 1; padding: 20px; overflow-y: auto; background: #f5f5f5; }
.breadcrumb { padding: 12px 20px; background: white; border-radius: 3px; margin-bottom: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); font-size: 14px; display: flex; align-items: center; gap: 8px; color: #666; }
.breadcrumb a { color: var(--navy-primary); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { color: var(--navy-accent); }
.breadcrumb-sep { color: #ccc; font-size: 12px; }
.header { background: white; padding: 20px; border-radius: 3px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 24px; color: #333; display: flex; align-items: center; gap: 10px; }

/* ====== Data Section ====== */
.data-section { background: white; padding: 20px; border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h2 { font-size: 20px; color: #333; display: flex; align-items: center; gap: 10px; }

/* ====== Skeleton Loaders ====== */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s ease-in-out infinite; border-radius: 3px; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-table { width: 100%; background: white; padding: 20px; border-radius: 3px; }
.skeleton-table-row { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid #f5f5f5; }
.skeleton-table-cell { height: 20px; border-radius: 3px; }
.skeleton-card { background: white; padding: 24px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: 1px solid #e0e0e0; border-left: 4px solid var(--navy-primary); }
.skeleton-icon { width: 60px; height: 60px; border-radius: 4px; margin-bottom: 16px; }
.skeleton-text { height: 16px; margin-bottom: 12px; border-radius: 3px; }
.skeleton-text-large { height: 32px; margin-bottom: 8px; border-radius: 3px; }
.skeleton-chart { width: 100%; height: 300px; border-radius: 3px; }

/* ====== Stat Cards ====== */
.stat-card { background: white; padding: 24px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: 1px solid #e0e0e0; border-left: 4px solid var(--navy-primary); transition: all 0.3s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.stat-card-icon { width: 60px; height: 60px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%); color: white; }
.stat-card-value { font-size: 32px; font-weight: 700; color: var(--navy-primary); margin-bottom: 8px; }
.stat-card-label { font-size: 14px; color: #666; font-weight: 500; text-transform: uppercase; }

/* ====== Charts ====== */
.chart-card { background: white; padding: 24px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.chart-card h3 { color: var(--navy-primary); font-size: 18px; margin-bottom: 20px; font-weight: 600; }
.chart-container { position: relative; height: 300px; }

/* ====== Grids ====== */
.dashboard-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.dashboard-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }

/* ====== DataTable ====== */
table.dataTable { width: 100% !important; border-collapse: collapse; background: white; }
table.dataTable thead th { background: var(--navy-primary) !important; color: white !important; padding: 14px !important; text-align: left; font-weight: 600; font-size: 14px; }
table.dataTable tbody td { padding: 12px 14px !important; font-size: 14px; color: #555; }
table.dataTable tbody tr:hover { background: #f9f9f9 !important; }
.dt-buttons { margin-bottom: 15px; }
.dt-button { background: var(--navy-primary) !important; color: white !important; border: none !important; padding: 8px 16px !important; border-radius: 3px !important; font-size: 14px !important; margin-right: 8px !important; cursor: pointer !important; }
.dt-button:hover { background: var(--navy-hover) !important; }

/* ====== Action Icons ====== */
.action-icon { background: transparent; border: none; cursor: pointer; font-size: 18px; padding: 6px 10px; margin: 0 4px; border-radius: 2px; transition: all 0.3s; }
.action-icon.edit-icon { color: #fbbc04; }
.action-icon.edit-icon:hover { background: rgba(251,188,4,0.1); transform: scale(1.15); }
.action-icon.delete-icon { color: #ea4335; }
.action-icon.delete-icon:hover { background: rgba(234,67,53,0.1); transform: scale(1.15); }

/* ====== Status Badge ====== */
.status-badge { padding: 6px 14px; border-radius: 3px; font-size: 13px; font-weight: 600; display: inline-block; }
.status-active { background: #d4edda; color: #155724; }
.status-inactive { background: #f8d7da; color: #721c24; }

/* ====== Buttons ====== */
.btn { padding: 10px 20px; border: none; border-radius: 2px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn-primary { background: var(--navy-primary); color: white; }
.btn-primary:hover { background: var(--navy-hover); transform: translateY(-2px); }
.btn-success { background: #34a853; color: white; }
.btn-danger { background: #ea4335; color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn:disabled { background: #ccc; cursor: not-allowed; }
.btn-sm { padding: 8px 16px; font-size: 13px; font-weight: 600; }

/* ====== Forms ====== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--navy-primary); font-weight: 600; font-size: 14px; }
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 14px 16px; border: 2px solid #e0e0e0; border-radius: 3px; font-size: 16px; transition: all 0.3s; font-family: inherit; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy-accent); box-shadow: 0 0 0 3px rgba(0,116,217,0.1); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-actions { display: flex; gap: 10px; margin-top: 30px; }
.error { margin-top: 15px; color: #ea4335; font-size: 14px; }

/* ====== Modal ====== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; padding: 20px; }
.modal { background: white; border-radius: 4px; width: 80%; max-width: 800px; max-height: 90vh; overflow-y: auto; box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
.modal-header { padding: 24px 30px; background: var(--navy-primary); color: white; display: flex; justify-content: space-between; align-items: center; border-radius: 4px 4px 0 0; }
.modal-header h3 { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin: 0; }
.close-btn { background: transparent; border: none; color: white; font-size: 28px; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.close-btn:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.modal-body { padding: 30px; }

/* ====== Filters ====== */
.filters-section { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border: 1px solid #dee2e6; border-radius: 4px; padding: 20px; margin-bottom: 25px; }
.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--navy-primary); }
.filters-header h3 { font-size: 18px; color: var(--navy-primary); font-weight: 600; display: flex; align-items: center; gap: 10px; margin: 0; }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group label { font-size: 13px; font-weight: 600; color: var(--navy-primary); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }
.filter-input { width: 100%; padding: 10px 12px; border: 2px solid #ced4da; border-radius: 3px; font-size: 16px; transition: all 0.3s; font-family: inherit; background: white; touch-action: manipulation; }
.filter-input:focus { outline: none; border-color: var(--navy-accent); box-shadow: 0 0 0 3px rgba(0,116,217,0.15); }

/* ====== Searchable Dropdown ====== */
.searchable-dropdown { position: relative; width: 100%; }
.searchable-dropdown-input { width: 100%; padding: 10px 36px 10px 12px; border: 2px solid #ced4da; border-radius: 3px; font-size: 16px; transition: all 0.3s; font-family: inherit; background: white; cursor: pointer; touch-action: manipulation; }
.searchable-dropdown-input:focus { outline: none; border-color: var(--navy-accent); box-shadow: 0 0 0 3px rgba(0,116,217,0.15); }
.searchable-dropdown-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #666; font-size: 12px; transition: transform 0.3s; }
.searchable-dropdown-arrow.open { transform: translateY(-50%) rotate(180deg); }
.searchable-dropdown-list { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 2px solid var(--navy-accent); border-top: none; border-radius: 0 0 3px 3px; max-height: 250px; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: none; }
.searchable-dropdown.open .searchable-dropdown-list { display: block; }
.searchable-dropdown-item { padding: 10px 14px; cursor: pointer; font-size: 14px; transition: background 0.2s; border-bottom: 1px solid #f0f0f0; }
.searchable-dropdown-item:hover { background: rgba(0,116,217,0.1); }
.searchable-dropdown-item.selected { background: var(--navy-primary); color: white; }
.searchable-dropdown-item.no-results { color: #999; font-style: italic; cursor: default; }
.searchable-dropdown-item.no-results:hover { background: transparent; }

/* ====== Multi-select Tags ====== */
.searchable-multi-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.searchable-multi-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--navy-primary); color: white; border-radius: 3px; font-size: 12px; font-weight: 600; }
.searchable-multi-tag-remove { background: none; border: none; color: white; cursor: pointer; font-size: 14px; padding: 0 2px; opacity: 0.7; transition: opacity 0.2s; }
.searchable-multi-tag-remove:hover { opacity: 1; }
.searchable-dropdown-item.checked { background: rgba(0,116,217,0.1); }
.searchable-dropdown-item.checked::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 8px; color: var(--navy-primary); font-size: 12px; }

/* ====== About Section ====== */
.about-section { max-width: 900px; margin: 0 auto; padding: 20px; }
.about-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; padding: 25px; background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%); border-radius: 4px; color: white; }
.about-logo img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); object-fit: cover; }
.about-title h1 { font-size: 24px; margin-bottom: 8px; font-weight: 700; }
.about-dev { font-size: 14px; opacity: 0.9; }
.about-card { background: white; border-radius: 4px; padding: 25px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-left: 4px solid var(--navy-primary); }
.about-card h2 { color: var(--navy-primary); font-size: 20px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.about-card p { color: #555; line-height: 1.7; font-size: 15px; }
.about-features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about-features li { padding: 14px 16px; background: #f8f9fa; border-radius: 8px; color: #333; font-size: 14px; font-weight: 600; display: flex; align-items: center; }
.about-features li i { color: var(--navy-primary); margin-right: 10px; font-size: 16px; flex-shrink: 0; }
.about-table-wrapper { overflow-x: auto; margin: 15px 0; }
.about-roles-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.about-roles-table th, .about-roles-table td { padding: 12px 15px; text-align: center; border: 1px solid #e0e0e0; }
.about-roles-table th { background: var(--navy-primary); color: white; font-weight: 600; }
.about-roles-table th:first-child { text-align: left; }
.about-roles-table td:first-child { text-align: left; font-weight: 500; background: #f8f9fa; }
.role-badge { display: inline-block; padding: 4px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.role-admin { background: #d4edda; color: #155724; }
.role-sf { background: #cce5ff; color: #004085; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.about-developer { border-left-color: var(--navy-accent); }
.developer-info { display: flex; gap: 20px; align-items: flex-start; }
.developer-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--navy-primary); flex-shrink: 0; }
.developer-details h3 { color: var(--navy-primary); font-size: 20px; margin-bottom: 5px; }
.developer-brand { color: var(--navy-accent); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.developer-details p { margin-bottom: 15px; }
.developer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.dev-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.3s; }
.dev-link.whatsapp { background: #25D366; color: white; }
.dev-link.whatsapp:hover { background: #128C7E; transform: translateY(-2px); }
.dev-link.youtube { background: #FF0000; color: white; }
.dev-link.youtube:hover { background: #CC0000; transform: translateY(-2px); }
.about-footer { text-align: center; padding: 25px; color: #666; font-size: 14px; }
.about-version { font-size: 12px; color: #999; margin-top: 5px; }

/* ====== Mobile Responsive ====== */
@media (max-width: 768px) {
    .sidebar { width: 220px; }
    .form-grid { grid-template-columns: 1fr; }
    .dashboard-grid-3, .dashboard-grid-2 { grid-template-columns: 1fr; }
    .modal { width: 95%; }
    .filters-section { padding: 15px; }
    .filters-grid { grid-template-columns: 1fr; gap: 15px; }
    .filters-header { flex-direction: column; gap: 15px; align-items: flex-start; }
    .about-header { flex-direction: column; text-align: center; }
    .developer-info { flex-direction: column; align-items: center; text-align: center; }
    .developer-links { justify-content: center; }

    input, select, textarea { font-size: 16px !important; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px !important; padding: 12px 14px; }
    .filter-input { font-size: 16px !important; }
    .searchable-dropdown-input { font-size: 16px !important; }

    /* auth pages */
    .auth-body { padding: 15px; }
    .auth-card { width: 90%; min-width: unset; }
    .auth-header { padding: 25px 20px; }
    .auth-header h1 { font-size: 24px; }
    .auth-form-container { padding: 20px; }
}

@media (max-width: 480px) {
    .auth-card { width: 100%; min-width: unset; }
    .auth-header h1 { font-size: 22px; }
    .auth-form-container { padding: 15px; }
    .auth-google-info { padding: 15px; gap: 12px; }
    .auth-google-avatar, .auth-google-avatar-placeholder { width: 50px; height: 50px; }
    .about-features { grid-template-columns: 1fr; }
}

/* ====== User Dashboard ====== */
.dashboard { display: flex; min-height: 100vh; }
.dashboard .sidebar { width: 260px; background: linear-gradient(180deg, var(--navy-primary) 0%, var(--navy-dark) 100%); color: white; padding: 0; box-shadow: 2px 0 15px rgba(0,0,0,0.1); min-height: 100vh; position: sticky; top: 0; overflow-y: auto; padding-bottom: 80px; }
.sidebar-header { padding: 30px 25px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.1); }
.dashboard .sidebar h2 { font-size: 24px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dashboard .sidebar ul { list-style: none; padding: 20px 0; }
.dashboard .sidebar ul li { margin-bottom: 5px; }
.dashboard .sidebar ul li a { color: rgba(255,255,255,0.8); text-decoration: none; display: flex; align-items: center; padding: 12px 25px; transition: all 0.3s; position: relative; font-size: 15px; }
.dashboard .sidebar ul li a:hover { background-color: rgba(255,255,255,0.1); color: white; padding-left: 30px; }
.dashboard .sidebar ul li a.active { background-color: rgba(0,116,217,0.2); color: white; border-left: 4px solid white; }
.sidebar ul li a.free-codes-link { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); color: white !important; border-radius: 4px; margin: 5px 15px; box-shadow: 0 2px 8px rgba(33,150,243,0.3); border-left: none !important; }
.sidebar ul li a.free-codes-link:hover { background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(33,150,243,0.4); padding-left: 25px !important; }
.sidebar ul li a.earn-points-link { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white !important; border-radius: 4px; margin: 5px 15px; box-shadow: 0 2px 8px rgba(245,158,11,0.3); border-left: none !important; }
.sidebar ul li a.earn-points-link:hover { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,0.4); padding-left: 25px !important; }

.dashboard .main-content { flex: 1; padding: 30px; background: linear-gradient(135deg, #e6f2ff 0%, #d9e9ff 50%, #e6f2ff 100%); background-attachment: fixed; }

/* dashboard header */
.dash-header { background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-primary) 100%); padding: 35px; border-radius: 4px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,116,217,0.3); color: white; position: relative; overflow: hidden; }
.dash-header::before { content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.dash-header h1 { font-size: 32px; font-weight: 600; margin-bottom: 10px; position: relative; z-index: 1; }
.dash-header p { opacity: 0.9; font-size: 16px; position: relative; z-index: 1; }

/* google connect alert */
.google-connect-alert { background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%); border-radius: 4px; padding: 20px; margin-bottom: 25px; display: flex; align-items: center; gap: 20px; position: relative; box-shadow: 0 5px 20px rgba(66,133,244,0.3); animation: fadeSlideIn 0.5s ease; }
.google-connect-alert .alert-icon { font-size: 48px; flex-shrink: 0; }
.google-connect-alert .alert-content { flex: 1; color: white; }
.google-connect-alert h3 { margin: 0 0 8px 0; font-size: 20px; font-weight: 600; }
.google-connect-alert p { margin: 0 0 15px 0; opacity: 0.95; font-size: 14px; }
.google-connect-alert .connect-btn { display: inline-block; background: white; color: #1a73e8; padding: 10px 20px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.3s; }
.google-connect-alert .connect-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.google-connect-alert .close-alert { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: white; font-size: 28px; cursor: pointer; opacity: 0.8; transition: opacity 0.3s; }
.google-connect-alert .close-alert:hover { opacity: 1; }

/* stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 30px; }
.stat-box { background: white; padding: 30px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.3s; position: relative; overflow: hidden; border-left: 4px solid var(--navy-primary); }
.stat-box:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.stat-box h3 { color: #7f8c8d; margin-bottom: 15px; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-box p { font-size: 28px; font-weight: 700; color: #2c3e50; }
.stat-box small { color: #94a3b8; font-size: 14px; }
.stat-icon { position: absolute; right: 25px; top: 25px; font-size: 40px; opacity: 0.1; }
.plan-badge { background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-primary) 100%); color: white; padding: 8px 20px; border-radius: 4px; font-weight: 600; display: inline-block; font-size: 16px; box-shadow: 0 3px 10px rgba(0,116,217,0.3); }
.plan-badge.no-plan { background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); }

/* content grid */
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; margin-bottom: 30px; }
.content-box { background: white; padding: 30px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.content-box h2 { margin-bottom: 25px; color: #2c3e50; font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.content-box h2 .icon { width: 35px; height: 35px; background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-primary) 100%); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: white; }
.info-grid { display: grid; gap: 15px; }
.info-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #f8fafc; border-radius: 4px; transition: all 0.3s; }
.info-item:hover { background-color: #e9ecef; transform: translateX(5px); }
.info-item label { font-weight: 600; color: #64748b; font-size: 14px; }
.info-item span { color: #1e293b; font-weight: 500; }

/* notifications */
.notifications-container { margin-bottom: 25px; }
.notification-alert { background: white; padding: 20px; border-radius: 4px; margin-bottom: 15px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); border-left: 5px solid #3b82f6; }
.notification-alert.success { border-left-color: #10b981; }
.notification-alert.warning { border-left-color: #f59e0b; }
.notification-alert.danger { border-left-color: #ef4444; }
.notification-alert .notif-wrap { display: flex; justify-content: space-between; align-items: start; }
.notification-alert .notif-body { flex: 1; }
.notification-alert h4 { color: #1e293b; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.notification-alert p { color: #64748b; font-size: 14px; line-height: 1.6; }
.notification-alert .notif-close { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 20px; padding: 0; }
.notif-icon-success { color: #10b981; }
.notif-icon-warning { color: #f59e0b; }
.notif-icon-danger { color: #ef4444; }
.notif-icon-info { color: #3b82f6; }

/* plans section */
.plans-section { background: white; padding: 30px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); margin-bottom: 30px; }
.plans-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.plans-section-header h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.total-files-badge { background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-primary) 100%); color: white; padding: 12px 25px; border-radius: 4px; text-align: center; box-shadow: 0 4px 15px rgba(0,116,217,0.3); }
.total-files-badge .count { font-size: 24px; font-weight: 700; }
.total-files-badge .label { font-size: 12px; opacity: 0.9; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 25px; }

/* plan cards */
.plan-card { background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%); border: 2px solid #e2e8f0; border-radius: 4px; padding: 35px; text-align: center; transition: all 0.3s; position: relative; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.plan-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--navy-accent) 0%, var(--navy-primary) 100%); transform: scaleX(0); transition: transform 0.3s; }
.plan-card:hover::before { transform: scaleX(1); }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,116,217,0.2); border-color: var(--navy-accent); background: linear-gradient(135deg, #e6f2ff 0%, #d9e9ff 100%); }
.plan-card.current { background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%); border-color: var(--navy-accent); }
.current-badge { position: absolute; top: 20px; right: 20px; background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-primary) 100%); color: white; padding: 8px 20px; border-radius: 4px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 15px rgba(0,116,217,0.3); }
.plan-icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-primary) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 25px; box-shadow: 0 8px 20px rgba(0,116,217,0.3); color: white; }
.plan-name { font-size: 28px; font-weight: 700; color: #1e293b; margin-bottom: 15px; }
.plan-price { text-align: center; margin-bottom: 25px; padding: 15px; background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); border-radius: 4px; border: 2px solid #e2e8f0; }
.price-amount { font-size: 24px; font-weight: 700; color: var(--navy-accent); }
.anchored-pricing { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.regular-price { font-size: 20px; color: #94a3b8; text-decoration: line-through; font-weight: 500; letter-spacing: 0.5px; }
.now-price { font-size: 36px; font-weight: 800; color: var(--navy-accent); letter-spacing: -0.5px; line-height: 1; }
.savings-badge { display: inline-block; background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; padding: 8px 20px; border-radius: 4px; font-size: 14px; font-weight: 700; margin-top: 5px; box-shadow: 0 4px 12px rgba(239,68,68,0.4); letter-spacing: 0.5px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.plan-card.current .plan-price { background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%); border-color: var(--navy-accent); }
.plan-features { margin-bottom: 30px; }
.feature-item { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; color: #475569; font-size: 15px; text-align: left; }
.feature-item::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; width: 24px; height: 24px; background-color: var(--navy-accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.plan-stats { display: flex; justify-content: space-around; padding-top: 25px; border-top: 2px solid #e5e7eb; margin-bottom: 20px; gap: 20px; }
.stat-item { text-align: center; flex: 1; max-width: 120px; }
.stat-number { font-size: 24px; font-weight: 700; color: var(--navy-accent); }
.stat-label { font-size: 12px; color: #64748b; margin-top: 5px; }
.plan-action { margin-top: 25px; padding-top: 20px; border-top: 1px solid #e2e8f0; }

/* plan action buttons */
.action-btn { width: 100%; padding: 15px 20px; border-radius: 4px; font-size: 16px; font-weight: 600; text-decoration: none; text-align: center; display: block; transition: all 0.3s; border: none; cursor: pointer; }
.upgrade-btn { background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-primary) 100%); color: white; box-shadow: 0 4px 12px rgba(0,116,217,0.3); }
.upgrade-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,116,217,0.4); }
.free-btn { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); color: white; box-shadow: 0 4px 12px rgba(33,150,243,0.3); }
.free-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(33,150,243,0.4); }
.current-plan-btn { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); color: white; opacity: 0.7; cursor: not-allowed; }
.plan-locked-btn { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); color: white; opacity: 0.8; cursor: not-allowed; font-size: 13px; }
.plan-locked-btn i { margin-right: 4px; }
.plan-locked-info { font-size: 11px; color: #94a3b8; text-align: center; margin-top: 6px; }
.points-buy-btn { background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%); color: white; box-shadow: 0 4px 12px rgba(0,31,63,0.3); }
.points-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,31,63,0.4); }
.points-buy-btn i { color: #f59e0b; }
.points-insufficient-btn { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.points-insufficient-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); }

/* marketing badges */
.marketing-badges-container { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.trending-badge { display: inline-block; padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 3px 10px rgba(0,0,0,0.15); }
.badge-MOST_POPULAR { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; }
.badge-HOT_DEAL { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; animation: pulse 1.5s infinite; }
.badge-TRENDING { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; }
.badge-LIMITED_TIME { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); color: white; }
.badge-BEST_VALUE { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; }
.urgency-countdown { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; padding: 12px 18px; border-radius: 4px; font-size: 14px; font-weight: 600; text-align: center; border: 2px solid #fbbf24; }
.urgency-countdown strong { font-size: 16px; font-weight: 800; color: #78350f; }
.scarcity-display { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #dc2626; padding: 10px 16px; border-radius: 4px; font-size: 14px; font-weight: 700; text-align: center; border: 2px solid #f87171; }
.live-viewers { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1e40af; padding: 10px 16px; border-radius: 4px; font-size: 13px; font-weight: 600; text-align: center; border: 2px solid #60a5fa; }
.live-viewers strong { font-size: 15px; font-weight: 800; }
.bonus-offer-banner { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #065f46; padding: 20px; border-radius: 4px; text-align: center; margin-bottom: 25px; border: 2px solid #34d399; }
.bonus-offer-banner .offer-text { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.bonus-offer-banner .offer-countdown { font-size: 24px; font-weight: 800; color: #047857; font-family: 'Courier New', monospace; }

/* contact notice */
.contact-notice { margin-top: 25px; padding: 20px; background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%); border-radius: 4px; text-align: center; }
.contact-notice p { color: var(--navy-dark); font-size: 15px; }
.contact-notice a { color: var(--navy-primary); font-weight: 600; text-decoration: none; }
.contact-notice a:hover { text-decoration: underline; }

/* recent files */
.recent-files { margin-top: 25px; }
.file-item { padding: 15px 20px; background-color: #f8fafc; border-radius: 4px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; }
.file-item:hover { background-color: #e9ecef; transform: translateX(5px); }
.file-name { font-weight: 500; color: #1e293b; }
.file-time { color: #94a3b8; font-size: 13px; }
.empty-state { text-align: center; padding: 40px; color: #94a3b8; }

/* countdown */
.countdown { font-weight: 700; font-size: 32px; display: inline-block; }
.countdown.warning { color: #f59e0b; }
.countdown.danger { color: #ef4444; }
.countdown.safe { color: #10b981; }

/* promo grid */
.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 25px 0; }
.promo-card { border-radius: 4px; padding: 30px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); color: white; transition: transform 0.3s, box-shadow 0.3s; }
.promo-card:hover { transform: translateY(-5px); }
.promo-card.promo-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.promo-card.promo-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.promo-card.promo-red { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.promo-card.promo-purple { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.promo-card-inner { text-align: center; }
.promo-icon { font-size: 50px; margin-bottom: 15px; }
.promo-card h3 { margin: 0 0 15px 0; font-size: 22px; font-weight: 700; }
.promo-card p { margin: 0 0 20px 0; font-size: 15px; opacity: 0.95; line-height: 1.6; }
.promo-btn { display: inline-block; background: white; padding: 12px 28px; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.3s, box-shadow 0.3s; }
.promo-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.promo-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promo-btn.text-green { color: #10b981; }
.promo-btn.text-blue { color: #3b82f6; }
.promo-btn.text-red { color: #dc2626; }
.promo-btn.text-purple { color: #7c3aed; }

/* color helpers */
.text-points { color: #f59e0b; }
.text-active { color: #10b981; font-weight: 600; }
.text-expired { color: #ef4444; font-weight: bold; }

/* receipt modal */
.receipt-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 10000; padding: 20px 0; animation: receiptFadeIn 0.3s ease; }
.receipt-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; border-radius: 4px; max-width: 700px; width: 90%; max-height: 85vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.5); display: flex; animation: receiptBounce 0.4s ease; }
@keyframes receiptFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes receiptBounce { 0% { transform: translate(-50%,-50%) scale(0.7); opacity: 0; } 50% { transform: translate(-50%,-50%) scale(1.05); } 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
.receipt-left { flex: 1; background: #f8f9fa; border-right: 2px dashed #dee2e6; padding: 25px 20px; display: flex; flex-direction: column; }
.receipt-header { text-align: center; border-bottom: 2px solid #333; padding-bottom: 15px; margin-bottom: 18px; }
.receipt-header .receipt-icon { font-size: 36px; margin-bottom: 8px; }
.receipt-header h3 { margin: 0; font-size: 18px; color: #333; font-weight: 700; letter-spacing: 1px; }
.receipt-header .receipt-brand { margin: 5px 0 0 0; font-size: 11px; color: #666; font-family: monospace; }
.receipt-field { margin-bottom: 12px; padding: 12px; background: white; border: 1px solid #dee2e6; }
.receipt-field .receipt-label { margin: 0 0 4px 0; font-size: 10px; color: #999; text-transform: uppercase; }
.receipt-field .receipt-value { margin: 0; font-size: 14px; color: #333; font-weight: 600; }
.receipt-field .receipt-value.text-sm { font-size: 13px; }
.receipt-totals { border-top: 2px solid #333; padding-top: 12px; }
.receipt-total-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.receipt-total-row span { font-size: 13px; color: #666; }
.receipt-total-row strong { font-size: 15px; font-weight: 700; }
.receipt-total-row strong.text-spent { color: #dc2626; }
.receipt-total-row strong.text-balance { font-size: 16px; color: #10b981; }
.receipt-total-row.receipt-total-border { padding-top: 8px; border-top: 1px solid #dee2e6; }
.receipt-txn { margin: 15px 0 0 0; font-size: 9px; color: #999; text-align: center; font-family: monospace; }
.receipt-right { flex: 1; padding: 25px 20px; background: white; display: flex; flex-direction: column; position: relative; }
.receipt-close { position: absolute; top: 15px; right: 15px; background: #f1f3f5; border: none; width: 32px; height: 32px; border-radius: 3px; font-size: 20px; color: #666; cursor: pointer; transition: all 0.2s; }
.receipt-close:hover { color: #dc2626; transform: rotate(90deg); }
.receipt-success-header { text-align: center; padding: 15px 0; border-bottom: 2px solid #f1f3f5; margin-bottom: 18px; }
.receipt-success-header .success-icon { font-size: 42px; margin-bottom: 8px; color: #10b981; }
.receipt-success-header h2 { margin: 0 0 8px 0; font-size: 20px; color: var(--navy-accent); font-weight: 700; }
.receipt-success-header p { margin: 0; font-size: 13px; color: #666; }
.receipt-info-box { padding: 12px; margin-bottom: 12px; }
.receipt-info-box h4 { margin: 0 0 8px 0; font-size: 13px; font-weight: 700; }
.receipt-info-box p, .receipt-info-box li { font-size: 11px; line-height: 1.5; }
.receipt-info-box.box-green { background: #d1fae5; border-left: 3px solid var(--success); color: #047857; }
.receipt-info-box.box-green h4 { color: #065f46; }
.receipt-info-box.box-blue-light { background: #ebf5fb; border-left: 3px solid #3498db; color: #555; }
.receipt-info-box.box-blue-light h4 { color: #333; }
.receipt-info-box.box-navy { background: #e6f2ff; border-left: 3px solid var(--navy-accent); color: #555; }
.receipt-info-box.box-navy h4 { color: #333; }
.receipt-info-box ul { margin: 0; padding-left: 18px; font-size: 10px; color: #555; line-height: 1.6; }
.receipt-continue-btn { width: 100%; margin-top: 18px; background: var(--navy-accent); color: white; border: none; padding: 12px; border-radius: 3px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.receipt-continue-btn:hover { background: linear-gradient(135deg, #10b981 0%, #059669 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(39,166,89,0.4); }
.receipt-continue-btn:active { transform: translateY(0); }

/* sidebar overlay */
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; }
.sidebar-overlay.show { display: block; }

/* ====== Sidebar Scrollbar ====== */
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }
.sidebar { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }

/* ====== User Sidebar Component ====== */
.sidebar ul li a { gap: 10px; }
.sidebar ul li a i.fas, .sidebar ul li a i.fab { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
.sidebar .dropdown-toggle { gap: 10px; }
.sidebar .dropdown-toggle i.fas { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
.activated-badge { background: var(--success); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; margin-left: 8px; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; }
.sidebar .dropdown { position: relative; }
.sidebar .dropdown-toggle { display: flex; align-items: center; cursor: pointer; justify-content: space-between; }
.sidebar .dropdown-toggle .arrow { font-size: 11px; transition: transform 0.3s ease; opacity: 0.6; margin-left: auto; }
.sidebar .dropdown.open .dropdown-toggle .arrow { transform: rotate(180deg); opacity: 1; }
.sidebar .dropdown-toggle:hover .arrow { opacity: 1; }
.sidebar .dropdown-menu { list-style: none; padding: 0; margin: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: rgba(0,0,0,0.25); padding-left: 20px; border: none !important; border-radius: 0 0 4px 0; }
.sidebar .dropdown.open .dropdown-menu { max-height: 250px; padding-top: 6px; padding-bottom: 6px; }
.sidebar .dropdown-menu li { margin-bottom: 0; }
.sidebar .dropdown-menu li a { padding: 10px 20px 10px 22px !important; font-size: 13px; color: rgba(255,255,255,0.7) !important; border: none !important; display: flex; align-items: center; gap: 10px; transition: all 0.2s ease; }
.sidebar .dropdown-menu li a i { font-size: 13px; width: 16px; text-align: center; opacity: 0.7; }
.sidebar .dropdown-menu li a:hover { background: rgba(0,116,217,0.15) !important; color: white !important; padding-left: 26px !important; }
.sidebar .dropdown-menu li a:hover i { opacity: 1; }
.sidebar .dropdown-menu li a.active { background: rgba(0,116,217,0.25) !important; color: white !important; border: none !important; }
.sidebar .dropdown-menu li a.active i { opacity: 1; }
.sidebar-header img { object-fit: cover; border-radius: 8px; display: block; margin: 0 auto; }

/* mobile bottom nav */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, var(--navy-primary) 0%, var(--navy-dark) 100%); box-shadow: 0 -4px 20px rgba(0,0,0,0.3); z-index: 1000; padding: 8px 0; padding-bottom: env(safe-area-inset-bottom, 8px); }
.bottom-nav-container { display: flex; justify-content: space-around; align-items: center; max-width: 100%; margin: 0 auto; padding: 0 5px; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 8px; color: rgba(255,255,255,0.7); text-decoration: none; border: none; background: transparent; cursor: pointer; transition: all 0.3s; border-radius: 4px; min-width: 60px; flex: 1; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: white; background: rgba(0,116,217,0.3); }
.bottom-nav-item.active { background: rgba(0,116,217,0.5); }
.bottom-nav-item .nav-emoji { font-size: 22px; margin-bottom: 4px; line-height: 1; }
.bottom-nav-item span:not(.nav-emoji) { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }

/* ====== User Dashboard Responsive ====== */
@media (max-width: 1400px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1200px) {
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-bottom-nav { display: block; }
    .sidebar { padding-bottom: 80px; }
    .dashboard { flex-direction: column; }
    .dashboard .sidebar { position: fixed; left: -280px; top: 0; width: 280px; height: 100vh; z-index: 1001; transition: left 0.3s ease; overflow-y: auto; }
    .dashboard .sidebar.show { left: 0; box-shadow: 5px 0 25px rgba(0,0,0,0.3); }
    .dashboard .main-content { padding: 12px; padding-bottom: 90px; width: 100%; }
    .dash-header { padding: 16px; margin-bottom: 12px; }
    .dash-header h1 { font-size: 18px; line-height: 1.3; }
    .dash-header p { font-size: 12px; margin-top: 4px; }
    .dash-header::before { width: 100px; height: 100px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
    .stat-box { padding: 12px 10px; }
    .stat-box h3 { font-size: 10px; margin-bottom: 5px; }
    .stat-box p { font-size: 18px; }
    .stat-box small { font-size: 10px !important; }
    .stat-icon { font-size: 22px; right: 8px; top: 8px; }
    .plan-badge { padding: 4px 10px; font-size: 11px; }
    .countdown { font-size: 18px; }
    .google-connect-alert { flex-direction: column; padding: 14px; gap: 10px; text-align: center; margin-bottom: 12px; }
    .google-connect-alert .alert-icon { font-size: 32px; }
    .google-connect-alert h3 { font-size: 15px; }
    .google-connect-alert p { font-size: 12px; margin-bottom: 10px; }
    .google-connect-alert .connect-btn { padding: 8px 16px; font-size: 13px; }
    .google-connect-alert .close-alert { top: 8px; right: 8px; font-size: 20px; }
    .promo-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; margin: 12px 0 !important; }
    .promo-card { padding: 14px; border-radius: 4px; }
    .promo-card h3 { font-size: 14px; margin-bottom: 8px; }
    .promo-card p { font-size: 11px; margin-bottom: 12px; line-height: 1.4; }
    .promo-icon { font-size: 28px !important; margin-bottom: 10px; }
    .promo-btn { padding: 8px 14px; font-size: 12px; }
    .promo-btn-grid { grid-template-columns: 1fr; gap: 6px; }
    .content-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 15px; }
    .content-box { padding: 14px; }
    .content-box h2 { font-size: 16px; margin-bottom: 12px; }
    .content-box h2 .icon { width: 28px; height: 28px; font-size: 14px; }
    .info-item { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 3px; }
    .info-item label { font-size: 11px; }
    .info-item span { font-size: 13px; }
    .file-item { padding: 10px 12px; }
    .file-name { font-size: 13px; }
    .file-time { font-size: 10px; }
    .plans-section { padding: 14px; margin-bottom: 15px; }
    .plans-section h2 { font-size: 16px; }
    .plans-section-header { flex-direction: column; gap: 10px; align-items: flex-start !important; }
    .total-files-badge { width: 100%; padding: 8px 14px; }
    .total-files-badge .count { font-size: 20px; }
    .total-files-badge .label { font-size: 10px; }
    .plans-grid { grid-template-columns: 1fr; gap: 12px; }
    .plan-card { padding: 18px 14px; }
    .plan-icon { width: 50px; height: 50px; font-size: 24px; margin-bottom: 14px; }
    .plan-name { font-size: 20px; margin-bottom: 10px; }
    .current-badge { padding: 4px 10px; font-size: 10px; top: 10px; right: 10px; }
    .plan-price { padding: 10px; margin-bottom: 14px; }
    .price-amount { font-size: 18px; }
    .regular-price { font-size: 14px; }
    .now-price { font-size: 24px; }
    .savings-badge { padding: 5px 12px; font-size: 11px; }
    .plan-features { margin-bottom: 16px; }
    .feature-item { font-size: 12px; margin-bottom: 8px; gap: 8px; }
    .feature-item::before { width: 18px; height: 18px; font-size: 10px; }
    .plan-stats { padding-top: 14px; gap: 8px; }
    .plan-stats .stat-number { font-size: 18px; }
    .plan-stats .stat-label { font-size: 9px; }
    .action-btn { padding: 10px 14px; font-size: 13px; }
    .plan-locked-btn { font-size: 11px !important; }
    .plan-locked-info { font-size: 10px; }
    .contact-notice { padding: 12px; margin-top: 12px; }
    .contact-notice p { font-size: 12px; }
    .marketing-badges-container { gap: 6px; margin-bottom: 10px; }
    .trending-badge { font-size: 10px; padding: 4px 10px; }
    .urgency-countdown { font-size: 11px; padding: 8px 10px; }
    .urgency-countdown strong { font-size: 12px; }
    .scarcity-display { font-size: 11px; padding: 6px 10px; }
    .live-viewers { font-size: 10px; padding: 6px 10px; }
    .bonus-offer-banner { padding: 12px; margin-bottom: 12px; }
    .bonus-offer-banner .offer-text { font-size: 13px; }
    .bonus-offer-banner .offer-countdown { font-size: 18px; }
    .notifications-container { margin-bottom: 12px; }
    .notification-alert { padding: 12px; margin-bottom: 8px; }
    .notification-alert h4 { font-size: 13px; }
    .notification-alert p { font-size: 11px; }
    .receipt-card { flex-direction: column !important; max-height: 90vh; }
    .receipt-left { border-right: none !important; border-bottom: 2px dashed #dee2e6; }
}

@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr; gap: 6px; }
    .stat-box { padding: 10px; }
    .stat-box p { font-size: 16px; }
    .dash-header h1 { font-size: 16px; }
    .dash-header p { font-size: 11px; }
    .dashboard .main-content { padding: 8px; padding-bottom: 90px; }
    .promo-grid { grid-template-columns: 1fr !important; }
    .plan-stats { flex-wrap: wrap; }
    .stat-item { min-width: 80px; }
}

/* ====== User Files Page ====== */
.mobile-navbar { display: none; position: fixed; top: 0; left: 0; right: 0; height: 60px; background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%); color: white; z-index: 1001; box-shadow: 0 2px 10px rgba(0,0,0,0.2); align-items: center; justify-content: space-between; padding: 0 20px; }
.mobile-navbar-title { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.hamburger-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 10px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; transition: background 0.3s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.hamburger-btn:active { background: rgba(255,255,255,0.2); }
.nav-spacer { width: 44px; }

/* download tracker */
.download-tracker { background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-primary) 100%); color: white; padding: 20px 25px; border-radius: 4px; margin-bottom: 25px; box-shadow: 0 4px 16px rgba(0,116,217,0.25); display: flex; justify-content: space-between; align-items: center; }
.download-info { font-size: 16px; }
.download-info strong { font-size: 24px; margin: 0 5px; }
#reset-countdown { font-weight: 600; color: #fff; background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 4px; display: inline-block; min-width: 80px; text-align: center; }

/* download status banner */
.dl-status-banner { color: white; padding: 20px 30px; border-radius: 4px; margin-bottom: 25px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); transition: background 0.4s; }
.dl-status-banner.can-download { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.dl-status-banner.limit-reached { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.dl-status-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.dl-status-info { flex: 1; }
.dl-status-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.dl-status-msg { font-size: 24px; font-weight: 700; }
.dl-status-note { font-size: 14px; margin-top: 8px; opacity: 0.9; }
.dl-status-stats { display: flex; gap: 30px; align-items: center; }
.dl-stat { text-align: center; }
.dl-stat-num { font-size: 32px; font-weight: 700; }
.dl-stat-label { font-size: 14px; opacity: 0.9; }

/* file page header */
.files-page-header { background: white; padding: 30px; border-radius: 4px; margin-bottom: 30px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border: 1px solid #e0e0e0; border-left: 4px solid var(--navy-accent); }
.files-page-header h1 { color: var(--navy-primary); font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.files-page-header p { color: #64748b; font-size: 15px; }

/* info banners */
.info-banner { padding: 20px; border-radius: 4px; margin-bottom: 25px; }
.info-banner.banner-success { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); border-left: 4px solid #10b981; }
.info-banner.banner-info { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); border-left: 4px solid #2196f3; }
.info-banner-inner { display: flex; align-items: center; gap: 15px; }
.info-banner-icon { font-size: 30px; flex-shrink: 0; }
.info-banner h4 { margin: 0 0 5px 0; font-weight: 600; }
.info-banner p { margin: 0; font-size: 14px; line-height: 1.6; }
.info-banner.banner-success h4 { color: #065f46; }
.info-banner.banner-success p { color: #047857; }
.info-banner.banner-info h4, .info-banner.banner-info h3 { color: #1976d2; margin: 0 0 8px 0; font-size: 18px; }
.info-banner.banner-info p { color: #1565c0; }

/* alert messages */
.alert-msg { padding: 15px 20px; border-radius: 4px; margin-bottom: 20px; border-left: 4px solid; display: flex; align-items: center; gap: 10px; }
.alert-msg.alert-error { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #991b1b; border-color: #ef4444; }
.alert-msg.alert-success { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #065f46; border-color: #10b981; }
.alert-msg .alert-icon { font-size: 20px; flex-shrink: 0; }

/* category sections */
.category-section { background: white; padding: 25px; border-radius: 4px; margin-bottom: 25px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border: 1px solid #e0e0e0; }
.category-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--navy-primary); }
.category-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-primary) 100%); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; }
.category-title { font-size: 22px; font-weight: 700; color: var(--navy-primary); }

/* file cards */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.file-card { background: #fafafa; border: 2px solid #e0e0e0; border-radius: 4px; padding: 20px; transition: all 0.3s; position: relative; overflow: hidden; border-left: 4px solid var(--navy-accent); }
.file-card::before { content: ''; position: absolute; top: 0; left: -4px; width: calc(100% + 4px); height: 3px; background: linear-gradient(90deg, var(--navy-accent) 0%, var(--navy-primary) 100%); }
.file-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,116,217,0.15); border-color: var(--navy-accent); background: #f0f7ff; }
.file-thumbnail { position: relative; width: 100%; padding-top: 56.25%; background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%); border-radius: 4px; overflow: hidden; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,31,63,0.15); }
.file-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; pointer-events: auto; }
.file-card:hover .file-thumbnail img { transform: scale(1.03); }
.file-code { background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%); color: white; padding: 5px 14px; border-radius: 3px; font-size: 12px; font-weight: 600; display: inline-block; margin-bottom: 10px; font-family: 'Courier New', monospace; }
.file-card .file-name { font-size: 17px; font-weight: 600; color: var(--navy-primary); margin-bottom: 10px; line-height: 1.5; }
.usage-type-badge { display: inline-block; padding: 5px 12px; border-radius: 3px; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.usage-type-php { background: linear-gradient(135deg, #777BB3 0%, #4F5B93 100%); color: white; }
.usage-type-appscript { background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-light) 100%); color: white; }
.usage-type-pending { display: inline-block; padding: 6px 12px; border-radius: 3px; font-size: 11px; font-weight: 600; margin-bottom: 10px; background: linear-gradient(135deg, #fbbc04 0%, #f59e0b 100%); color: var(--navy-primary); animation: pendingPulse 2s ease-in-out infinite; }
@keyframes pendingPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.plan-type-indicator { padding: 8px 0; }
.plan-type-badge-inline { display: inline-block; padding: 8px 14px; border-radius: 3px; font-size: 13px; font-weight: 600; }
.plan-type-badge-inline.php { background: linear-gradient(135deg, #777BB3 0%, #4F5B93 100%); color: white; }
.plan-type-badge-inline.appscript { background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-light) 100%); color: white; }

/* file url buttons */
.file-urls { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.url-btn { padding: 10px 18px; border-radius: 3px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.3s; display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; }
.youtube-btn { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); color: white; }
.youtube-btn:hover { background: linear-gradient(135deg, #cc0000 0%, #990000 100%); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,0,0,0.3); }
.download-btn { background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-light) 100%); color: white; }
.download-btn:hover { background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-primary) 100%); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,116,217,0.3); }
.download-btn.purchased-btn { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.url-btn.btn-disabled { cursor: not-allowed; background: #ef4444; color: white; }

/* access badges */
.access-badge { position: absolute; top: 15px; right: 15px; padding: 5px 12px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.access-badge.purchased { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; border: 1px solid #fcd34d; }
.access-badge.assigned { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); color: #6b21a8; border: 1px solid #d8b4fe; }
.access-badge.plan { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: var(--navy-primary); border: 1px solid #93c5fd; }
.access-badge.free { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #065f46; border: 1px solid #6ee7b7; }

/* setup guide */
.setup-guide-banner { background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-primary) 100%); padding: 20px 25px; border-radius: 4px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 16px rgba(0,116,217,0.25); gap: 15px; }
.setup-guide-content { color: white; flex: 1; }
.setup-guide-content h3 { margin: 0 0 5px 0; font-size: 18px; }
.setup-guide-content p { margin: 0; opacity: 0.95; font-size: 14px; }
.setup-guide-btn { background: white; color: var(--navy-primary); padding: 12px 22px; border-radius: 3px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; white-space: nowrap; flex-shrink: 0; }
.setup-guide-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.setup-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 25px; }
.setup-video-grid a { display: block; padding: 20px 15px; background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-light) 100%); border-radius: 4px; text-align: center; text-decoration: none; color: white; box-shadow: 0 4px 15px rgba(0,116,217,0.3); transition: transform 0.2s, box-shadow 0.2s; }
.setup-video-grid a:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,116,217,0.4); }
.setup-video-icon { font-size: 28px; margin-bottom: 10px; }
.setup-video-label { font-size: 14px; font-weight: 700; }

/* filter controls */
.filter-controls { background: white; padding: 25px; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); margin-bottom: 25px; border: 1px solid #e0e0e0; border-left: 4px solid var(--navy-accent); }
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; align-items: end; margin-bottom: 15px; }
.filter-controls .filter-group { display: flex; flex-direction: column; }
.filter-controls .searchable-dropdown { width: 100%; }
.filter-controls .searchable-dropdown-input { width: 100%; padding: 14px 36px 14px 12px; border: 2px solid #e0e0e0; border-radius: 3px; font-size: 15px; }
.filter-controls .filter-group label { font-weight: 600; color: var(--navy-primary); margin-bottom: 8px; font-size: 14px; }
.filter-controls .filter-group select { padding: 14px 16px; border: 2px solid #e0e0e0; border-radius: 3px; font-size: 15px; background: white; transition: all 0.3s; font-family: inherit; }
.filter-controls .filter-group select:focus { outline: none; border-color: var(--navy-accent); box-shadow: 0 0 0 3px rgba(0,116,217,0.1); }
.filter-controls .filter-group input[type="text"] { padding: 14px 16px; border: 2px solid #e0e0e0; border-radius: 3px; font-size: 15px; background: white; transition: all 0.3s; width: 100%; font-family: inherit; }
.filter-controls .filter-group input[type="text"]:focus { outline: none; border-color: var(--navy-accent); box-shadow: 0 0 0 3px rgba(0,116,217,0.1); }
.search-input-row { display: flex; gap: 8px; }
.search-btn { padding: 14px 20px; background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-light) 100%); color: white; border: none; border-radius: 3px; cursor: pointer; font-size: 15px; font-weight: 600; flex-shrink: 0; transition: all 0.3s; }
.search-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,116,217,0.3); }
.btn-reset { background: linear-gradient(135deg, #64748b 0%, #475569 100%); color: white; padding: 14px 20px; border-radius: 3px; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.3s; align-self: end; text-align: center; display: inline-block; border: none; }
.btn-reset:hover { background: linear-gradient(135deg, #475569 0%, #334155 100%); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(71,85,105,0.3); }
.results-info { grid-column: 1 / -1; padding: 12px 0; color: #64748b; font-size: 14px; border-top: 2px solid var(--navy-primary); margin-top: 10px; }

/* empty state enhancements */
.empty-state-icon { font-size: 60px; margin-bottom: 20px; }
.empty-state-actions { display: flex; gap: 20px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.empty-state-actions .btn-primary { box-shadow: 0 4px 12px rgba(0,116,217,0.25); }
.empty-state-actions .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,116,217,0.35); }
.empty-state-tip { margin-top: 25px; padding: 15px; background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-radius: 4px; border-left: 4px solid #10b981; }
.empty-state-tip p { color: #065f46; margin: 0; font-size: 14px; line-height: 1.6; }

/* security */
body.user-files-page, .user-files-page .main-content, .user-files-page .file-card { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.user-files-page input, .user-files-page textarea, .user-files-page select { -webkit-user-select: text; -moz-user-select: text; user-select: text; }
.user-files-page img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.file-thumbnail img { pointer-events: auto; }

/* ====== User Files Responsive ====== */
@media (max-width: 768px) {
    .mobile-navbar { display: flex; height: 50px; padding: 0 12px; }
    .mobile-navbar-title { font-size: 16px; }
    .hamburger-btn { width: 40px; height: 40px; font-size: 20px; }
    .files-page-header { display: none; }
    .files-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .file-card { padding: 10px; border-width: 1px; }
    .file-card:hover { transform: none; }
    .file-thumbnail { display: none; }
    .file-card .file-name { font-size: 12px; margin-bottom: 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .file-code { font-size: 9px; padding: 2px 6px; margin-bottom: 6px; }
    .access-badge { position: static; display: inline-block; font-size: 8px; padding: 2px 6px; margin-bottom: 8px; border-radius: 10px; }
    .file-urls { flex-direction: column; gap: 5px; }
    .url-btn { padding: 6px 10px; font-size: 11px; justify-content: center; }
    .download-tracker { flex-direction: column; gap: 8px; text-align: center; padding: 12px; margin-bottom: 10px; }
    .download-info { font-size: 12px; }
    .download-info strong { font-size: 16px; }
    #reset-countdown { padding: 1px 6px; font-size: 11px; min-width: 60px; }
    .category-section { padding: 10px; margin-bottom: 10px; }
    .category-header { margin-bottom: 10px; padding-bottom: 8px; gap: 8px; }
    .category-icon { width: 28px; height: 28px; font-size: 14px; }
    .category-title { font-size: 14px; }
    .setup-guide-banner { flex-direction: column; text-align: center; padding: 15px; margin-bottom: 12px; }
    .setup-guide-content h3 { font-size: 14px; margin-bottom: 4px; }
    .setup-guide-content p { font-size: 12px; }
    .setup-guide-btn { width: 100%; justify-content: center; padding: 10px 16px; font-size: 13px; }
    .setup-video-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 15px; }
    .setup-video-grid a { padding: 15px 12px; }
    .filter-controls { padding: 12px; margin-bottom: 12px; }
    .filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
    .filter-controls .filter-group label { font-size: 12px; margin-bottom: 4px; }
    .filter-controls .filter-group select, .filter-controls .filter-group input[type="text"] { padding: 10px 12px; font-size: 16px !important; border-width: 1px; width: 100%; }
    .filter-group:first-child, .filter-group:last-child { grid-column: 1 / -1; }
    .search-btn { padding: 10px 14px !important; font-size: 16px; flex-shrink: 0; }
    .btn-reset { padding: 10px 16px; font-size: 13px; width: 100%; display: block; }
    .results-info { font-size: 12px; padding: 8px 12px; text-align: center; margin-top: 0; background: #f0f7ff; border-radius: 4px; border-top: none; }
    .dl-status-banner { padding: 15px; margin-bottom: 12px; }
    .dl-status-inner { flex-direction: column; gap: 15px; }
    .dl-status-info { text-align: center; }
    .dl-status-title { font-size: 14px; }
    .dl-status-msg { font-size: 16px; }
    .dl-status-note { font-size: 12px; }
    .dl-status-stats { justify-content: center; gap: 20px; flex-wrap: wrap; }
    .dl-stat-num { font-size: 22px; }
    .dl-stat-label { font-size: 10px; }
    .info-banner { padding: 12px; margin-bottom: 12px; }
    .info-banner-inner { flex-direction: row; text-align: left; gap: 10px; align-items: flex-start; }
    .info-banner h4, .info-banner h3 { font-size: 14px; margin-bottom: 4px; }
    .info-banner p { font-size: 12px; }
    .info-banner-icon { font-size: 24px; }
    .empty-state { padding: 25px 15px; }
    .empty-state h3 { font-size: 16px; }
    .empty-state p { font-size: 13px; }
    .empty-state-icon { font-size: 40px !important; margin-bottom: 15px; }
    .empty-state-actions { flex-direction: column; gap: 12px; }
    .empty-state-actions a { width: 100%; justify-content: center; }
    .empty-state-tip { margin-top: 20px; padding: 12px; }
    .empty-state-tip p { font-size: 12px; }
}

@media (max-width: 480px) {
    .filter-row { grid-template-columns: 1fr; gap: 8px; }
    .filter-group:first-child, .filter-group:last-child { grid-column: 1; }
    .setup-guide-banner { padding: 12px; }
    .setup-guide-content h3 { font-size: 13px; }
    .setup-guide-content p { font-size: 11px; }
    .setup-guide-btn { padding: 8px 14px; font-size: 12px; }
    .filter-controls { padding: 10px; }
}

@media (max-width: 380px) {
    .files-grid { gap: 6px; }
    .file-card { padding: 8px; }
    .file-card .file-name { font-size: 11px; }
    .file-code { font-size: 8px; padding: 2px 5px; }
    .access-badge { font-size: 7px; padding: 2px 5px; }
    .url-btn { padding: 5px 8px; font-size: 10px; }
    .category-section { padding: 8px; }
    .category-title { font-size: 13px; }
    .category-icon { width: 24px; height: 24px; font-size: 12px; }
    .download-tracker { padding: 10px; }
    .download-info { font-size: 11px; }
    .download-info strong { font-size: 14px; }
    .mobile-navbar { height: 45px; padding: 0 10px; }
    .mobile-navbar-title { font-size: 14px; }
}

/* ====== Plans Page - Active Plan Banner ====== */
.active-plan-banner { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; padding: 20px 25px; border-radius: 4px; margin-bottom: 20px; box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.active-plan-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.active-plan-info { display: flex; align-items: center; gap: 15px; flex: 1; }
.active-plan-icon { font-size: 36px; flex-shrink: 0; }
.active-plan-info h3 { font-size: 20px; font-weight: 700; margin: 0 0 4px 0; }
.active-plan-info p { margin: 0; font-size: 14px; opacity: 0.95; }
.active-plan-points { text-align: center; background: rgba(255,255,255,0.2); padding: 12px 20px; border-radius: 4px; }
.active-plan-points-num { font-size: 24px; font-weight: 700; }
.active-plan-points-label { font-size: 11px; opacity: 0.9; text-transform: uppercase; }

.activate-plan-banner { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; padding: 20px 25px; border-radius: 4px; margin-bottom: 20px; box-shadow: 0 4px 16px rgba(245,158,11,0.3); }
.activate-plan-inner { display: flex; align-items: center; gap: 15px; }
.activate-plan-icon { font-size: 36px; flex-shrink: 0; }
.activate-plan-inner h3 { font-size: 20px; font-weight: 700; margin: 0 0 4px 0; }
.activate-plan-inner p { margin: 0; font-size: 14px; opacity: 0.95; }

@media (max-width: 768px) {
    .active-plan-inner { flex-direction: column; text-align: center; }
    .active-plan-info { flex-direction: column; }
    .active-plan-icon { font-size: 28px; }
    .active-plan-info h3 { font-size: 16px; }
    .active-plan-points { width: 100%; }
    .activate-plan-inner { flex-direction: column; text-align: center; }
    .activate-plan-icon { font-size: 28px; }
}

/* ====== Downloads Page + Shared Utilities ====== */
.header p { color: #64748b; font-size: 15px; }
.stat-box .stat-number { font-size: 32px; font-weight: 700; color: var(--navy-primary); }
.filter-section { background: white; padding: 20px 25px; border-radius: 4px; margin-bottom: 25px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-top: 3px solid var(--navy-primary); }
.filter-form { display: flex; gap: 15px; align-items: end; flex-wrap: wrap; }
.filter-section .filter-group { flex: 1; min-width: 180px; }
.filter-section .filter-group select,
.filter-section .filter-group input { width: 100%; padding: 10px 15px; border: 2px solid #e2e8f0; border-radius: 3px; font-size: 15px; transition: all 0.3s; }
.filter-section .filter-group select:focus,
.filter-section .filter-group input:focus { outline: none; border-color: var(--navy-accent); box-shadow: 0 0 0 3px rgba(0,116,217,0.1); }
.filter-btn { background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%); color: white; padding: 12px 30px; border: none; border-radius: 3px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.filter-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,31,63,0.3); }
.clear-btn { background: #64748b; color: white; padding: 12px 30px; border: none; border-radius: 3px; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s; }
.clear-btn:hover { background: #475569; transform: translateY(-2px); }

/* vanilla JS searchable dropdown */
.searchable-dropdown-selected { width: 100%; padding: 10px 15px; border: 2px solid #e2e8f0; border-radius: 3px; font-size: 15px; background: white; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; }
.searchable-dropdown-selected:hover { border-color: var(--navy-accent); }
.searchable-dropdown.open .searchable-dropdown-selected { border-color: var(--navy-accent); box-shadow: 0 0 0 3px rgba(0,116,217,0.1); border-radius: 3px 3px 0 0; }
.searchable-dropdown.open .searchable-dropdown-arrow { transform: translateY(-50%) rotate(180deg); }
.searchable-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; border: 2px solid var(--navy-accent); border-top: none; border-radius: 0 0 3px 3px; z-index: 100; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.searchable-dropdown.open .searchable-dropdown-menu { display: block; }
.searchable-dropdown-search { width: 100%; padding: 10px 15px; border: none; border-bottom: 1px solid #e2e8f0; font-size: 14px; outline: none; }
.searchable-dropdown-search::placeholder { color: #94a3b8; }
.searchable-dropdown-options { max-height: 200px; overflow-y: auto; }
.searchable-dropdown-option { padding: 10px 15px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.searchable-dropdown-option:hover { background: #f0f7ff; }
.searchable-dropdown-option.selected { background: rgba(0,116,217,0.1); color: var(--navy-primary); font-weight: 600; }
.searchable-dropdown-option.hidden { display: none; }

/* badges */
.user-badge { background: #e0f2fe; color: var(--navy-primary); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; }
.file-badge { background: var(--navy-primary); color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; display: inline-block; margin-top: 4px; }
.date-badge { background: #fef3c7; color: #d97706; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; }
.usage-badge-php { background: linear-gradient(135deg, #777BB3 0%, #4F5B93 100%); color: white; padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 600; display: inline-block; margin-top: 4px; }
.usage-badge-appscript { background: linear-gradient(135deg, #0074D9 0%, #003366 100%); color: white; padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 600; display: inline-block; margin-top: 4px; }

/* download action btns */
.redownload-btn { background: linear-gradient(135deg, var(--navy-accent) 0%, var(--navy-light) 100%); color: white; padding: 8px 16px; border-radius: 3px; text-decoration: none; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: all 0.3s; }
.redownload-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,116,217,0.3); color: white; }
.demo-btn { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); color: white; padding: 8px 16px; border-radius: 3px; text-decoration: none; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: all 0.3s; }
.demo-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,0,0,0.3); color: white; }
.no-demo { color: #94a3b8; font-size: 13px; font-style: italic; }

/* success msg */
.success-message { background: #d1fae5; color: #065f46; padding: 15px 20px; border-radius: 4px; margin-bottom: 20px; border-left: 4px solid #10b981; display: flex; align-items: center; gap: 10px; }
.success-message::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; background: #10b981; color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* delete btns */
.action-buttons { display: flex; gap: 10px; margin-bottom: 20px; justify-content: flex-end; }
.delete-btn { background: #dc3545; color: white; padding: 10px 20px; border: none; border-radius: 3px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 8px; }
.delete-btn:hover { background: #c82333; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(220,53,69,0.3); }
.delete-btn.delete-all { background: var(--navy-primary); }
.delete-btn.delete-all:hover { background: var(--navy-hover); box-shadow: 0 4px 12px rgba(0,31,63,0.3); }
.delete-single-btn { background: transparent; color: #dc3545; padding: 4px 8px; border: 1px solid #dc3545; border-radius: 3px; font-size: 12px; cursor: pointer; transition: all 0.2s; }
.delete-single-btn:hover { background: #dc3545; color: white; }
.inline-form { display: inline; }

/* plain table inside content-box */
.content-box table { width: 100%; border-collapse: collapse; }
.content-box table th, .content-box table td { padding: 15px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.content-box table th { background: var(--navy-primary); font-weight: 600; color: white; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.content-box table th:first-child { border-radius: 4px 0 0 0; }
.content-box table th:last-child { border-radius: 0 4px 0 0; }
.content-box table tr:hover { background: #f8fafc; }
.content-box table tr:last-child td { border-bottom: none; }

/* pagination */
.pagination-container { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 20px; background: #f8f9fa; border-radius: 4px; }
.pagination-info { color: #6c757d; font-size: 14px; }
.pagination-controls { display: flex; align-items: center; gap: 15px; }
.per-page-selector { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #495057; }
.per-page-selector select { padding: 6px 12px; border: 1px solid #ced4da; border-radius: 3px; background: white; cursor: pointer; }
.pagination-buttons { display: flex; gap: 8px; }
.pagination-buttons a, .pagination-buttons span { padding: 8px 12px; text-decoration: none; color: #495057; background: white; border: 1px solid #dee2e6; border-radius: 3px; font-size: 14px; transition: all 0.2s; }
.pagination-buttons a:hover { background: var(--navy-primary); color: white; border-color: var(--navy-primary); }
.pagination-buttons .current { background: var(--navy-primary); color: white; border-color: var(--navy-primary); font-weight: 600; }
.pagination-buttons .disabled { color: #adb5bd; cursor: not-allowed; opacity: 0.6; }

/* downloads mobile */
@media (max-width: 768px) {
    .filter-form { flex-direction: column; }
    .filter-section .filter-group { width: 100%; min-width: unset; }
    .content-box table thead { display: none; }
    .content-box table tbody tr { display: block; margin-bottom: 15px; border: 1px solid #e2e8f0; border-radius: 4px; padding: 15px; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .content-box table tbody tr:hover { background: white; }
    .content-box table td { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
    .content-box table td:last-child { border-bottom: none; }
    .content-box table td::before { content: attr(data-label); font-weight: 600; color: var(--navy-primary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px; margin-right: 10px; flex-shrink: 0; }
    .pagination-container { flex-direction: column; gap: 15px; text-align: center; }
    .pagination-controls { flex-direction: column; gap: 10px; }
    .pagination-buttons { flex-wrap: wrap; justify-content: center; }
}

/* ====== Client Quotes ====== */
.modal-wide { max-width: 980px; width: 92%; }
.quotes-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.quotes-toolbar-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.quotes-toolbar-filters .filter-input { min-width: 220px; }
.quote-section-title { color: var(--navy-primary); font-size: 15px; font-weight: 700; margin: 22px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #e9ecef; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.quote-section-title:first-child { margin-top: 0; }
.quote-items-wrap { background: #f8f9fa; padding: 15px; border-radius: 4px; border: 1px solid #e9ecef; margin-bottom: 10px; }
.quote-items-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.quote-items-table th { background: var(--navy-primary); color: white; padding: 10px 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; text-align: left; letter-spacing: 0.3px; }
.quote-items-table td { padding: 6px 4px; vertical-align: middle; border-bottom: 1px solid #e9ecef; }
.quote-items-table input { width: 100%; padding: 8px 10px !important; border: 1px solid #ced4da; border-radius: 3px; font-size: 14px !important; background: white; }
.quote-items-table input:focus { outline: none; border-color: var(--navy-accent); box-shadow: 0 0 0 2px rgba(0,116,217,0.15); }
.quote-items-table .qi-line { font-weight: 700; color: var(--navy-primary); text-align: right; padding-right: 10px; }
.quote-totals { background: #f8f9fa; padding: 18px 22px; border-radius: 4px; border-left: 4px solid var(--navy-primary); margin-top: 15px; }
.quote-totals > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: #555; }
.quote-totals > div strong { color: var(--navy-primary); font-size: 15px; }
.quote-totals-grand { border-top: 2px solid var(--navy-primary); margin-top: 8px; padding-top: 12px !important; font-size: 18px !important; }
.quote-totals-grand span, .quote-totals-grand strong { font-size: 18px !important; font-weight: 700; color: var(--navy-primary) !important; }
.quote-view { padding: 10px; }
.quote-view-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid var(--navy-primary); }
.quote-view-head h2 { color: var(--navy-primary); margin-bottom: 5px; }
.quote-view-parties { background: #f8f9fa; padding: 18px; border-radius: 4px; border-left: 4px solid var(--navy-accent); }

/* status badges for quotes */
.q-status-draft { background: #e2e3e5; color: #383d41; }
.q-status-sent { background: #cfe2ff; color: #084298; }
.q-status-accepted { background: #d4edda; color: #155724; }
.q-status-rejected { background: #f8d7da; color: #721c24; }
.q-status-expired { background: #fff3cd; color: #856404; }

@media (max-width: 768px) {
    .quotes-toolbar { flex-direction: column; align-items: stretch; }
    .quotes-toolbar-filters .filter-input { min-width: 100%; }
    .quote-view-head { flex-direction: column; gap: 12px; }
    .quote-items-table thead { display: none; }
    .quote-items-table tr { display: block; margin-bottom: 12px; padding: 10px; background: white; border-radius: 4px; }
    .quote-items-table td { display: block; padding: 4px 0; border-bottom: none; }
}
