/**
 * NutriVita - Premium Stylesheet
 * Brand Colors: Primary #51C3C3, Background #F6FBFB
 */

:root {
    /* Brand Colors */
    --primary: #51C3C3;
    --primary-dark: #3FA8A8;
    --primary-light: #7DD3D3;
    --primary-bg: #F6FBFB;
    
    /* Semantic Colors */
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
    
    /* Text Colors */
    --text-primary: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    /* UI Colors */
    --bg-white: #FFFFFF;
    --bg-light: #F6FBFB;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.12);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   PUBLIC PAGE STYLES
   ============================================ */

.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.public-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 40px;
    width: auto;
}

.header-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(81, 195, 195, 0.05) 100%);
    padding: 60px 24px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Verification Card */
.verification-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.verification-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.verify-form {
    margin-bottom: 0;
}

.verify-form .form-group:last-of-type {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 24px;
}

.verify-form .btn-primary {
    margin-top: 8px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
    background: var(--bg-white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(81, 195, 195, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
    font-family: var(--font-family);
}

.helper-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-family);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(81, 195, 195, 0.2);
}

.verify-form .btn-primary {
    width: 100%;
    margin-top: 20px;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(81, 195, 195, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(81, 195, 195, 0.2);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-link {
    background: none;
    color: var(--primary);
    padding: 8px 0;
    font-weight: 500;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.btn-clear {
    background: var(--bg-white);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-clear:hover {
    background: var(--bg-light);
    color: var(--text-primary);
    border-color: var(--text-muted);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-clear:active {
    transform: translateY(0);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Result Container */
.result-container {
    margin-top: 32px;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.product-card {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 20px 0;
    display: flex;
    gap: 16px;
    align-items: center;
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-image.clickable-image {
    cursor: pointer;
}

.product-image.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 4px 0;
}

.verification-insights {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 20px 0;
}

.insight-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.insight-row:last-child {
    border-bottom: none;
}

.insight-label {
    color: var(--text-muted);
    font-weight: 500;
}

.insight-value {
    color: var(--text-primary);
    font-weight: 600;
}

.message-box {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.message-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success);
}

.message-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid var(--warning);
}

.message-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--danger);
}

.message-box p {
    margin: 0;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

.how-it-works h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.how-it-works .section-tagline {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 auto 40px;
    max-width: 600px;
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 24px;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(81, 195, 195, 0.2);
    transition: all 0.2s ease;
}

.step-card:hover .step-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(81, 195, 195, 0.3);
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Security Notice Box */
.security-notice-box {
    max-width: 800px;
    margin: 50px auto 0;
    background: linear-gradient(135deg, rgba(81, 195, 195, 0.08) 0%, rgba(81, 195, 195, 0.03) 100%);
    border: 2px solid rgba(81, 195, 195, 0.2);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.security-notice-box:hover {
    border-color: rgba(81, 195, 195, 0.4);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.security-notice-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(81, 195, 195, 0.3);
}

.security-notice-icon svg {
    width: 24px;
    height: 24px;
}

.security-notice-content {
    flex: 1;
}

.security-notice-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 8px 0;
}

.security-notice-content p {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.public-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.footer-contact {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-contact a {
    color: var(--primary);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Rate Limit Message */
.rate-limit-message {
    background: #FEF3C7;
    color: #92400E;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    border-left: 4px solid var(--warning);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

.admin-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-light);
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.admin-sidebar .logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.admin-sidebar .logo img {
    height: 36px;
    width: auto;
}

.admin-sidebar nav ul {
    list-style: none;
    padding: 0 16px;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9375rem;
}

.admin-sidebar nav a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.admin-sidebar nav a.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
}

.admin-header {
    background: var(--bg-white);
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info span {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.btn-logout {
    padding: 8px 16px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-logout:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
}

.btn-logout:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

table th,
table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover {
    background: var(--bg-light);
}

table tr:last-child td {
    border-bottom: none;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: var(--font-family);
    transition: all 0.2s;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(81, 195, 195, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--text-muted);
    color: white;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(100, 116, 139, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(100, 116, 139, 0.2);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.btn-success:hover {
    background: #15803D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.2);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    gap: 6px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 0.8125rem;
    gap: 4px;
}

/* Button with icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-sm .btn-icon svg,
.btn-xs .btn-icon svg {
    width: 14px;
    height: 14px;
}

/* Action buttons in tables */
.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    border-left: 4px solid;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-color: var(--success);
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-color: var(--danger);
}

/* Filters */
.filters {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: end;
}

.filters .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.badge-active {
    background: #D1FAE5;
    color: #065F46;
}

.badge-disabled {
    background: #FEE2E2;
    color: #991B1B;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(81, 195, 195, 0.05) 100%);
    padding: 24px;
}

.login-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-color);
}

.login-card .logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-card .logo img {
    height: 48px;
    width: auto;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .verification-card {
        padding: 24px;
        margin-top: -20px;
    }
    
    .admin-sidebar {
        width: 240px;
    }
    
    .admin-main {
        margin-left: 240px;
        padding: 16px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .security-notice-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-top: 40px;
        gap: 16px;
    }
    
    .security-notice-icon {
        align-self: center;
    }
}

@media (max-width: 640px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-section {
        padding: 40px 16px;
    }
    
    .verification-container {
        padding: 0 16px 40px;
    }
    
    .security-notice-box {
        padding: 16px;
        margin-top: 30px;
        gap: 12px;
    }
    
    .security-notice-icon {
        width: 40px;
        height: 40px;
    }
    
    .security-notice-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .security-notice-content h3 {
        font-size: 1rem;
    }
    
    .security-notice-content p {
        font-size: 0.875rem;
    }
}

/* Image Modal/Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    background: var(--bg-white);
    padding: 8px;
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 16px;
    font-size: 1.125rem;
    font-weight: 500;
    max-width: 600px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    margin: 0;
    outline: none;
    box-sizing: border-box;
}

.modal-close svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .insight-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .message-box {
    border-left: none;
    border-right: 4px solid;
}
