/* ============================================
   CloudShare - Modern Design System
   ============================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === CSS Variables === */
:root {
    /* Primary palette */
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #5A52E0;
    --primary-glow: rgba(108, 99, 255, 0.3);

    /* Accent */
    --accent: #00D9FF;
    --accent-light: #33E1FF;
    --accent-dark: #00B8D9;

    /* Success / Warning / Danger */
    --success: #10B981;
    --success-light: #34D399;
    --warning: #F59E0B;
    --warning-light: #FBBF24;
    --danger: #EF4444;
    --danger-light: #F87171;
    --info: #3B82F6;

    /* Dark Theme */
    --bg-primary: #0F0F1A;
    --bg-secondary: #1A1A2E;
    --bg-tertiary: #16213E;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-card-hover: rgba(26, 26, 46, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    --bg-input: rgba(255, 255, 255, 0.08);

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-active: rgba(108, 99, 255, 0.5);

    /* Text */
    --text-primary: #F1F1F6;
    --text-secondary: #A0A0B8;
    --text-muted: #6B6B80;
    --text-inverse: #0F0F1A;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px var(--primary-glow);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* === Reset === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* === Background Effects === */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 20%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-2%, -2%);
    }
}

/* === Layout: Auth Pages === */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* === Layout: App Shell === */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sidebar-brand h2 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 217, 255, 0.08));
    color: var(--primary-light);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.sidebar-link .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-user {
    padding: 16px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.sidebar-user .user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user .user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user .user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top bar */
.top-bar {
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

.page-title {
    font-size: 18px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb .separator {
    opacity: 0.4;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

/* Content area */
.content-area {
    padding: 32px;
    flex: 1;
}

/* === Cards === */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

/* === Stat Cards === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.stat-card.purple::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.stat-card.cyan::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.stat-card.green::before {
    background: linear-gradient(90deg, var(--success), var(--success-light));
}

.stat-card.orange::before {
    background: linear-gradient(90deg, var(--warning), var(--warning-light));
}

.stat-card.red::before {
    background: linear-gradient(90deg, var(--danger), var(--danger-light));
}

.stat-card.blue::before {
    background: linear-gradient(90deg, var(--info), #60A5FA);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card.purple .stat-icon {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
}

.stat-card.cyan .stat-icon {
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent);
}

.stat-card.green .stat-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.stat-card.orange .stat-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.stat-card.red .stat-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-light);
}

.stat-card.blue .stat-icon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.stat-info {}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--text-inverse);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #DC2626);
    color: white;
}

.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* === Forms === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A0A0B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* === Upload Zone === */
.upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.03), rgba(0, 217, 255, 0.03));
    opacity: 0;
    transition: var(--transition);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    border-style: solid;
}

.upload-zone:hover::before,
.upload-zone.dragover::before {
    opacity: 1;
}

.upload-zone.dragover {
    background: rgba(108, 99, 255, 0.05);
    transform: scale(1.01);
}

.upload-zone .upload-icon {
    font-size: 52px;
    color: var(--primary-light);
    margin-bottom: 16px;
    display: block;
}

.upload-zone .upload-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-zone .upload-hint {
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-zone .upload-browse {
    color: var(--primary-light);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Upload Progress */
.upload-progress-list {
    margin-top: 24px;
}

.upload-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-item .file-icon {
    width: 44px;
    height: 44px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.upload-item .file-details {
    flex: 1;
    min-width: 0;
}

.upload-item .file-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-item .file-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.progress-bar-wrap {
    height: 6px;
    background: var(--bg-glass);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar.complete {
    background: linear-gradient(90deg, var(--success), var(--success-light));
}

.upload-item .upload-status {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.upload-item .upload-status.uploading {
    color: var(--primary-light);
}

.upload-item .upload-status.complete {
    color: var(--success);
}

.upload-item .upload-status.error {
    color: var(--danger);
}

/* === File Grid === */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.file-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.file-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.file-card .file-thumb {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border-radius: var(--radius-md);
}

.file-card .file-thumb.image {
    background: rgba(239, 68, 68, 0.1);
    color: #F87171;
}

.file-card .file-thumb.video {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-light);
}

.file-card .file-thumb.audio {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.file-card .file-thumb.pdf {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.file-card .file-thumb.document {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.file-card .file-thumb.archive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.file-card .file-thumb.folder {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.file-card .file-thumb.file {
    background: rgba(160, 160, 184, 0.1);
    color: var(--text-secondary);
}

.file-card .file-thumb.code {
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent);
}

.file-card .file-thumb.spreadsheet {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.file-card .file-thumb.presentation {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-light);
}

.file-card .file-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.file-card .file-size {
    font-size: 12px;
    color: var(--text-muted);
}

.file-card .file-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition-fast);
}

.file-card:hover .file-actions {
    opacity: 1;
}

.file-card .file-check {
    position: absolute;
    top: 8px;
    left: 8px;
    opacity: 0;
    transition: var(--transition-fast);
}

.file-card:hover .file-check {
    opacity: 1;
}

/* File List View */
.file-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.file-list-header,
.file-list-row {
    display: grid;
    grid-template-columns: 40px 1fr 120px 120px 100px 80px;
    align-items: center;
    padding: 12px 20px;
    gap: 12px;
}

.file-list-header {
    background: var(--bg-glass);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.file-list-row {
    border-bottom: 1px solid var(--border);
    transition: var(--transition-fast);
    cursor: pointer;
}

.file-list-row:last-child {
    border-bottom: none;
}

.file-list-row:hover {
    background: var(--bg-glass-hover);
}

.file-list-row .file-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.file-list-row .file-info .name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-list-row .file-info .meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* === Tables === */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-glass);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--bg-glass-hover);
}

/* === Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-primary {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-light);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-light);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-light);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}

/* === Alerts === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.3s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-light);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger-light);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning-light);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* === Pagination === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.pagination a {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border: none;
}

/* === Toast Notifications === */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.3s ease;
}

.toast.toast-success {
    border-left: 3px solid var(--success);
}

.toast.toast-error {
    border-left: 3px solid var(--danger);
}

.toast.toast-warning {
    border-left: 3px solid var(--warning);
}

.toast.toast-info {
    border-left: 3px solid var(--info);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === Share Page === */
.share-page {
    max-width: 640px;
    margin: 60px auto;
    padding: 0 20px;
}

.share-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.share-card .file-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.share-card .file-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    word-break: break-word;
}

.share-card .file-details-list {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* === Countdown Timer === */
.countdown-container {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

.countdown-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.countdown-circle {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.countdown-circle-bg {
    fill: none;
    stroke: rgba(108, 99, 255, 0.15);
    stroke-width: 6;
}

.countdown-circle-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.countdown-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-light);
    z-index: 1;
    line-height: 1;
}

.countdown-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.countdown-text strong {
    color: var(--primary-light);
    font-weight: 700;
}

.download-ready {
    animation: downloadPulse 0.6s ease-out;
}

@keyframes downloadPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* === Preview Page === */
.preview-container {
    max-width: 960px;
    margin: 0 auto;
}

.video-player,
.audio-player {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}

.video-player video,
.audio-player audio {
    width: 100%;
    display: block;
}

.image-preview {
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    object-fit: contain;
}

.pdf-preview iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: var(--radius-lg);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* === Storage Bar === */
.storage-bar {
    margin-top: 16px;
}

.storage-bar .bar-bg {
    height: 8px;
    background: var(--bg-glass);
    border-radius: 4px;
    overflow: hidden;
}

.storage-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.storage-bar .bar-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* === Context Menu === */
.context-menu {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    display: none;
}

.context-menu.active {
    display: block;
    animation: slideUp 0.15s ease;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.context-menu-item:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.context-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* === Tabs === */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

/* === Remote Upload === */
.remote-url-input {
    display: flex;
    gap: 12px;
}

.remote-url-input input {
    flex: 1;
}

/* === Dropdown === */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: none;
}

.dropdown.active .dropdown-menu {
    display: block;
    animation: slideUp 0.15s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .content-area {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .search-box {
        display: none;
    }

    .top-bar {
        padding: 12px 20px;
    }

    .file-list-header,
    .file-list-row {
        grid-template-columns: 40px 1fr 80px 60px;
    }

    .file-list-header> :nth-child(4),
    .file-list-row> :nth-child(4),
    .file-list-header> :nth-child(5),
    .file-list-row> :nth-child(5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .file-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 22px;
    }

    .share-card {
        padding: 28px 20px;
    }
}

/* === Sidebar overlay for mobile === */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* === Loader === */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.loader-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.page-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

/* === Toggle Switch === */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-secondary);
    top: 2px;
    left: 3px;
    transition: var(--transition);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(19px);
    background: white;
}

/* === QR Code === */
.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.qr-code-container canvas {
    border-radius: var(--radius-md);
}

/* === Animations === */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-secondary);
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-primary {
    color: var(--primary-light);
}

.font-bold {
    font-weight: 700;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mr-1 {
    margin-right: 8px;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* ============================================
   Home Page — Modern Landing UI
   ============================================ */

/* === Page Body Override === */
.home-page {
    background: var(--bg-primary);
    overflow-x: hidden;
}

.home-page::before {
    display: none;
}

/* === Navbar === */
.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.home-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.home-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.home-logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-nav-links {
    display: flex;
    gap: 32px;
}

.home-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.home-nav-link:hover {
    color: var(--text-primary);
}

.home-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.home-nav-link:hover::after {
    width: 100%;
}

.home-nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.home-btn-login {
    font-size: 14px;
    padding: 8px 20px;
}

.home-btn-start {
    font-size: 14px;
    padding: 8px 24px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

.home-btn-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.4);
    color: white;
}

/* === Hero === */
.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.home-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.home-hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.3), transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.home-hero-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.2), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -3s;
}

.home-hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.home-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.home-hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 1;
    animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 32px;
    animation: heroFadeIn 0.8s ease-out 0.1s both;
}

.home-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.home-hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: heroFadeIn 0.8s ease-out 0.2s both;
}

.home-hero-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
    animation: heroFadeIn 0.8s ease-out 0.3s both;
}

.home-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroFadeIn 0.8s ease-out 0.4s both;
}

.home-btn-hero-start {
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
}

.home-btn-hero-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
    color: white;
}

.home-btn-hero-login {
    border-radius: var(--radius-full);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

.home-hero-social {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: heroFadeIn 0.8s ease-out 0.5s both;
}

.home-hero-social-text {
    font-size: 13px;
    color: var(--text-muted);
}

.home-hero-avatars {
    display: flex;
    gap: 0;
}

.home-hero-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    border: 2px solid var(--bg-primary);
    margin-left: -8px;
}

.home-hero-avatar:first-child {
    margin-left: 0;
}

/* === Sections === */
.home-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.home-section-alt {
    max-width: 100%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.home-section-alt>* {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.home-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.home-section-badge {
    display: inline-flex;
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.home-section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.home-section-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === Feature Cards === */
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.home-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.home-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.home-feature-card:hover::before {
    opacity: 1;
}

.home-feature-card-highlight {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(0, 217, 255, 0.04));
    border-color: rgba(108, 99, 255, 0.2);
}

.home-feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.home-feature-card:hover .home-feature-icon-wrap {
    transform: scale(1.1);
}

.home-feature-icon-purple {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
}

.home-feature-icon-cyan {
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent);
}

.home-feature-icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.home-feature-icon-orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.home-feature-icon-red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-light);
}

.home-feature-icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.home-feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.home-feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.home-feature-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.home-feature-tag {
    padding: 4px 12px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-light);
}

/* === How It Works Steps === */
.home-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.home-step {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

.home-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

.home-step-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.home-step:hover .home-step-icon {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.3);
    transform: scale(1.05);
}

.home-step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.home-step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.home-step-connector {
    display: flex;
    align-items: center;
    padding-top: 64px;
    flex-shrink: 0;
    width: 80px;
}

.home-step-connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.3;
    position: relative;
}

.home-step-connector-line::after {
    content: '→';
    position: absolute;
    right: -8px;
    top: -10px;
    color: var(--accent);
    font-size: 18px;
}

/* === Stats === */
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.home-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.home-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.home-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.home-stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.home-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.home-stat-bar {
    height: 4px;
    background: var(--bg-glass);
    border-radius: 2px;
    overflow: hidden;
}

.home-stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 1s ease;
}

/* === Trust Features === */
.home-trust-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.home-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.home-trust-item:hover {
    border-color: var(--border-active);
    color: var(--text-primary);
    background: rgba(108, 99, 255, 0.08);
}

.home-trust-item svg {
    color: var(--primary-light);
}

/* === CTA === */
.home-cta {
    padding: 100px 40px;
}

.home-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

.home-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.home-cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.home-cta-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.4), transparent 70%);
    top: -20%;
    left: -20%;
}

.home-cta-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.3), transparent 70%);
    bottom: -20%;
    right: -20%;
}

.home-cta-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    z-index: 1;
    position: relative;
}

.home-cta-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    z-index: 1;
    position: relative;
}

.home-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 1;
    position: relative;
}

/* === Footer === */
.home-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 40px 32px;
}

.home-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.home-footer-brand {
    margin-bottom: 40px;
}

.home-footer-brand .home-logo {
    margin-bottom: 16px;
}

.home-footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.home-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.home-footer-col-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.home-footer-link {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0;
    transition: var(--transition-fast);
}

.home-footer-link:hover {
    color: var(--primary-light);
}

.home-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.home-footer-powered {
    color: var(--text-muted);
}

/* === Responsive — Home Page === */
@media (max-width: 1024px) {
    .home-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-steps {
        flex-direction: column;
        align-items: center;
    }

    .home-step-connector {
        width: 2px;
        height: 40px;
        padding-top: 0;
    }

    .home-step-connector-line {
        height: 100%;
        width: 2px;
    }

    .home-step-connector-line::after {
        content: '↓';
        right: auto;
        top: auto;
        bottom: -16px;
        left: -8px;
    }
}

@media (max-width: 768px) {
    .home-nav-inner {
        padding: 12px 20px;
    }

    .home-nav-links {
        display: none;
    }

    .home-hero {
        padding: 100px 20px 60px;
    }

    .home-hero-subtitle {
        font-size: 16px;
    }

    .home-section {
        padding: 60px 20px;
    }

    .home-features-grid {
        grid-template-columns: 1fr;
    }

    .home-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-trust-features {
        gap: 12px;
    }

    .home-trust-item {
        font-size: 13px;
        padding: 8px 14px;
    }

    .home-cta-inner {
        padding: 48px 24px;
    }

    .home-footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .home-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .home-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .home-btn-hero-start,
    .home-btn-hero-login {
        width: 100%;
        max-width: 320px;
    }

    .home-stats-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-social {
        flex-direction: column;
        gap: 8px;
    }

    .home-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .home-footer-links {
        grid-template-columns: 1fr;
    }

    .home-nav-actions .home-btn-login {
        display: none;
    }
}

/* ============================================
   Policy Pages (Privacy, Terms, Cookies)
   ============================================ */

.policy-section {
    padding: 40px 20px 80px;
    min-height: 60vh;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
}

.policy-header {
    text-align: center;
    margin-bottom: 48px;
}

.policy-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.policy-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.policy-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 400;
}

.policy-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.policy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.policy-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.policy-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 24px;
    margin-bottom: 12px;
}

.policy-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.policy-card ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.policy-card ul li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 6px 0 6px 24px;
    position: relative;
}

.policy-card ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    left: 8px;
    top: 6px;
}

.policy-card ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.policy-card a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

.policy-card a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Cookie Table */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cookie-table thead {
    background: rgba(108, 99, 255, 0.1);
}

.cookie-table th {
    padding: 12px 16px;
    text-align: left;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.cookie-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

.cookie-table td code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--accent);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.cookie-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Policy Navigation Bottom */
.policy-nav-bottom {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.policy-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.policy-nav-link:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Footer Legal Links */
.home-footer-legal-links {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.home-footer-legal-links a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.home-footer-legal-links a:hover {
    color: var(--primary-light);
}

/* Policy Pages Responsive */
@media (max-width: 768px) {
    .policy-section {
        padding: 24px 16px 60px;
    }

    .policy-title {
        font-size: 28px;
    }

    .policy-card {
        padding: 24px 20px;
    }

    .policy-card h2 {
        font-size: 18px;
    }

    .policy-card h3 {
        font-size: 15px;
    }

    .policy-nav-bottom {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px 12px;
        font-size: 12px;
    }

    .home-footer-legal-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* ============================================
   Advertisement Styles
   ============================================ */

/* === Ad Container Base === */
.ad-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.ad-container:hover {
    box-shadow: var(--shadow-glow);
}

/* === Ad Label === */
.ad-container::before {
    content: 'Ad';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-glass);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    z-index: 2;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.ad-container:hover::before {
    opacity: 1;
}

/* === Ad Link === */
.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.ad-link:hover {
    color: inherit;
    opacity: 0.95;
}

/* === Ad Image === */
.ad-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* === Ad Type: Image === */
.ad-type-image {
    background: var(--bg-card);
    border: 1px solid var(--border);
    max-width: 100%;
}

.ad-type-image .ad-image {
    max-height: 250px;
}

/* === Ad Type: HTML === */
.ad-type-html {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0;
    min-height: 60px;
    max-width: 100%;
}

.ad-type-html iframe,
.ad-type-html ins {
    display: block;
    width: 100% !important;
    min-height: 60px;
}

/* === Ad Type: Text === */
.ad-type-text {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px 24px;
    max-width: 100%;
}

.ad-text-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ad-type-text .ad-link .ad-text-content {
    color: var(--text-primary);
}

.ad-type-text .ad-link:hover .ad-text-content {
    color: var(--primary-light);
}

/* === Ad Type: Video === */
.ad-type-video {
    background: var(--bg-card);
    border: 1px solid var(--border);
    max-width: 100%;
}

.ad-type-video iframe {
    width: 100%;
    min-height: 200px;
    border: none;
    display: block;
}

.ad-type-video video {
    width: 100%;
    display: block;
    max-height: 300px;
}

/* === Position: Header Banner === */
.ad-container[data-position="header_banner"] {
    margin: 12px 24px 0;
    max-height: 120px;
}

.ad-container[data-position="header_banner"] .ad-image {
    max-height: 120px;
    object-fit: cover;
}

/* === Position: Footer Banner === */
.ad-container[data-position="footer_banner"] {
    margin: 16px auto;
    max-width: 728px;
    max-height: 150px;
}

.ad-container[data-position="footer_banner"] .ad-image {
    max-height: 150px;
}

/* === Position: Sidebar === */
.ad-container[data-position="sidebar"] {
    margin: 16px 0;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    max-height: 300px;
}

.ad-container[data-position="sidebar"] .ad-image {
    max-height: 250px;
    border-radius: var(--radius-sm);
}

/* === Position: Content Top === */
.ad-container[data-position="content_top"] {
    margin: 0 0 20px 0;
    max-height: 200px;
}

.ad-container[data-position="content_top"] .ad-image {
    max-height: 200px;
}

/* === Position: Content Bottom === */
.ad-container[data-position="content_bottom"] {
    margin: 20px 0 0 0;
    max-height: 200px;
}

.ad-container[data-position="content_bottom"] .ad-image {
    max-height: 200px;
}

/* === Position: Home Hero === */
.ad-container[data-position="home_hero"] {
    margin: 0 auto 24px;
    max-width: 728px;
    max-height: 150px;
}

.ad-container[data-position="home_hero"] .ad-image {
    max-height: 150px;
}

/* === Position: Home Sidebar === */
.ad-container[data-position="home_sidebar"] {
    margin: 24px auto;
    max-width: 728px;
    max-height: 200px;
}

.ad-container[data-position="home_sidebar"] .ad-image {
    max-height: 200px;
}

/* === Position: Download Page === */
.ad-container[data-position="download_page"] {
    margin: 24px auto 0;
    max-width: 500px;
    max-height: 250px;
}

.ad-container[data-position="download_page"] .ad-image {
    max-height: 250px;
}

.ad-container[data-position="download_page"].ad-type-text {
    text-align: center;
}

/* === Position: Preview Page === */
.ad-container[data-position="preview_page"] {
    margin: 24px auto 0;
    max-width: 960px;
    max-height: 150px;
}

.ad-container[data-position="preview_page"] .ad-image {
    max-height: 150px;
}

/* === Responsive Ad Styles === */
@media (max-width: 768px) {
    .ad-container[data-position="header_banner"] {
        margin: 8px 12px 0;
        max-height: 80px;
    }

    .ad-container[data-position="header_banner"] .ad-image {
        max-height: 80px;
    }

    .ad-container[data-position="footer_banner"] {
        margin: 12px 16px;
    }

    .ad-container[data-position="sidebar"] {
        margin: 12px 0;
    }

    .ad-container[data-position="content_top"],
    .ad-container[data-position="content_bottom"] {
        max-height: 150px;
    }

    .ad-container[data-position="content_top"] .ad-image,
    .ad-container[data-position="content_bottom"] .ad-image {
        max-height: 150px;
    }

    .ad-container[data-position="home_hero"] {
        max-height: 100px;
        margin-bottom: 16px;
    }

    .ad-container[data-position="home_hero"] .ad-image {
        max-height: 100px;
    }

    .ad-container[data-position="download_page"] {
        max-width: 100%;
    }

    .ad-container[data-position="preview_page"] {
        max-width: 100%;
    }

    .ad-type-text {
        padding: 16px;
    }

    .ad-text-content {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ad-container[data-position="header_banner"] {
        max-height: 60px;
    }

    .ad-container[data-position="header_banner"] .ad-image {
        max-height: 60px;
    }

    .ad-container::before {
        font-size: 8px;
        padding: 1px 6px;
    }
}

/* ============================================
   News & Updates Styles
   ============================================ */

/* News Page */
.news-page-header {
    margin-bottom: 24px;
}

.news-category-badge {
    transition: all 0.2s ease;
}

.news-category-badge:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* News Article Card */
.news-article-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.15);
}

.news-article-image img {
    transition: transform 0.3s ease;
}

.news-article-card:hover .news-article-image img {
    transform: scale(1.05);
}

.news-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* News Article Detail */
.news-article-detail {
    border-radius: 12px;
}

.news-article-summary {
    font-style: italic;
}

.news-article-content {
    max-width: 100%;
    word-wrap: break-word;
}

.news-article-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.news-article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text-primary);
}

.news-article-content p {
    margin: 12px 0;
    color: var(--text-secondary);
}

.news-article-content ul,
.news-article-content ol {
    margin: 12px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.news-article-content li {
    margin: 6px 0;
    line-height: 1.6;
}

.news-article-content blockquote {
    margin: 16px 0;
    padding: 16px 20px;
    background: var(--bg-glass);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    color: var(--text-secondary);
    font-style: italic;
}

.news-article-content code {
    background: var(--bg-glass);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--accent);
}

.news-article-content pre {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--border);
}

.news-article-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.news-article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--primary-glow);
}

.news-article-content a:hover {
    color: var(--primary-light);
}

/* News Article Page */
.news-article-page {
    padding-bottom: 40px;
}

/* Responsive News */
@media (max-width: 768px) {
    .news-page [style*="grid-template-columns:1fr 300px"] {
        grid-template-columns: 1fr !important;
    }

    .news-article-detail [style*="padding:32px"] {
        padding: 20px !important;
    }

    .news-article-detail h1 {
        font-size: 22px !important;
    }

    .news-article-content h2 {
        font-size: 18px;
    }

    .news-article-content h3 {
        font-size: 16px;
    }

    .news-article-page [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .news-category-badge {
        padding: 4px 10px;
        font-size: 12px;
    }

    .news-article-card [style*="padding:20px"] {
        padding: 16px !important;
    }

    .news-article-image {
        height: 150px !important;
    }
}

/* ============================================
   Home Page News Section Styles
   ============================================ */

.home-news-section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.home-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(108, 99, 255, 0.2);
    border-color: var(--border-active);
}

.home-news-card-image {
    height: 180px;
    overflow: hidden;
}

.home-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-news-card:hover .home-news-card-image img {
    transform: scale(1.05);
}

.home-news-card-body {
    padding: 20px;
}

.home-news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.home-news-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.home-news-card-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .home-news-section {
        padding: 40px 16px;
    }
}

@media (max-width: 480px) {
    .home-news-card-image {
        height: 140px;
    }
}

/* === Pricing & Payment Styles === */

.pricing-page {
    padding: 20px 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(0, 217, 255, 0.05));
}

.pricing-card.current {
    border-color: var(--success);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-plan-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-plan-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    min-height: 20px;
}

.pricing-amount {
    margin-bottom: 24px;
}

.pricing-price {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pricing-price .pricing-currency {
    font-size: 18px;
    vertical-align: top;
    line-height: 36px;
}

.pricing-price .pricing-value {
    font-size: 36px;
    font-weight: 800;
}

.pricing-price .pricing-period {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-price-alt {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-price-alt .pricing-currency {
    font-size: 14px;
}

.pricing-price-alt .pricing-value {
    font-size: 20px;
    font-weight: 600;
}

.pricing-price-alt .pricing-period {
    font-size: 12px;
}

.pricing-features {
    margin-bottom: 32px;
    flex: 1;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
}

.feature-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.pricing-action {
    margin-top: auto;
}

.btn-block {
    width: 100%;
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.gateway-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gateway-option {
    cursor: pointer;
}

.gateway-option input[type="radio"] {
    display: none;
}

.gateway-option input[type="radio"]:checked+.gateway-card {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.gateway-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.gateway-card:hover {
    border-color: var(--primary-light);
}

.gateway-icon {
    font-size: 24px;
}

.gateway-name {
    font-weight: 600;
    font-size: 16px;
}

.gateway-currency {
    color: var(--text-muted);
    font-size: 12px;
}

.payment-process-page {
    min-height: 400px;
    display: flex;
    align-items: center;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover {
    background: var(--bg-glass-hover);
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
}

.btn-success:hover {
    background: var(--success-light);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: var(--danger-light);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-title {
        font-size: 24px;
    }
}