/* ====================================
   DirectMyLink - Design System
   Modern, clean design with green/white
   ==================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables (Light Theme) ── */
:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: #d1fae5;
    --primary-dark: #047857;
    --primary-glow: rgba(16, 185, 129, 0.3);

    --bg: #ffffff;
    --bg-secondary: #f0fdf4;
    --bg-tertiary: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.15);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    --danger: #ef4444;
    --danger-light: #fef2f2;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --info: #3b82f6;
    --info-light: #eff6ff;
    --success: #10b981;
    --success-light: #d1fae5;

    --header-height: 72px;
    --max-width: 1200px;
}

/* ── Dark Theme ── */
[data-theme="dark"] {
    --primary: #34d399;
    --primary-hover: #6ee7b7;
    --primary-light: rgba(52, 211, 153, 0.15);
    --primary-dark: #10b981;
    --primary-glow: rgba(52, 211, 153, 0.25);

    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #1e293b;
    --bg-card: #1e293b;
    --bg-input: #334155;

    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    --border: #334155;
    --border-light: #1e293b;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(52, 211, 153, 0.15);

    --danger: #f87171;
    --danger-light: rgba(239, 68, 68, 0.15);
    --warning: #fbbf24;
    --warning-light: rgba(245, 158, 11, 0.15);
    --info: #60a5fa;
    --info-light: rgba(59, 130, 246, 0.15);
}

/* ── Base Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* ── Containers ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.page-wrapper {
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--header-height);
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

[data-theme="dark"] .main-header {
    background: rgba(15, 23, 42, 0.85);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ── Lang Switcher (Header) ── */
.lang-switcher {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    z-index: 1001;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.lang-option:first-child {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.lang-option:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.lang-option.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

[data-theme="dark"] .lang-option.active {
    color: var(--primary);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-input);
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ── Auth Forgot Password ── */
.auth-forgot {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 4px;
}

.auth-forgot a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.auth-forgot a:hover {
    color: var(--primary);
    text-decoration: underline;
}

#forgotPasswordForm {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 30%, var(--primary-light) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .hero-badge {
    color: var(--primary);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Shortener Box */
.shortener-box {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
}

.shortener-input-wrap {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.shortener-input-wrap .form-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
}

.shortener-input-wrap .btn {
    padding: 14px 28px;
    font-size: 1rem;
}

.shortener-options {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.shortener-options .form-input {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.shortener-result {
    margin-top: 20px;
    padding: 20px;
    background: var(--success-light);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: none;
    animation: slideUp 0.4s ease;
}

.shortener-result.show {
    display: block;
}

.shortener-result .result-url {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    word-break: break-all;
}

[data-theme="dark"] .shortener-result .result-url {
    color: var(--primary);
}

.shortener-result .result-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.guest-notice {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

/* ═══════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════ */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #06b6d4);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════ */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step-counter;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    counter-increment: step-counter;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════ */
.faq-section {
    padding: 80px 0;
    background: var(--bg);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.08);
}

.faq-item.open {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-item.open .faq-question {
    color: var(--primary);
    background: var(--primary-light);
}

.faq-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════ */
.stats-bar {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.85;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.main-footer {
    padding: 48px 0 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ═══════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════ */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════
   USER PANEL
   ═══════════════════════════════════════ */
.panel-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.panel-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    flex-shrink: 0;
}

.panel-sidebar .sidebar-nav {
    list-style: none;
}

.panel-sidebar .sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    border-right: 3px solid transparent;
}

.panel-sidebar .sidebar-nav li a:hover,
.panel-sidebar .sidebar-nav li a.active {
    color: var(--primary);
    background: var(--primary-light);
    border-right-color: var(--primary);
}

.panel-sidebar .sidebar-nav li a .nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.panel-content {
    flex: 1;
    padding: 32px;
    overflow-x: hidden;
}

.panel-section {
    display: none;
}

.panel-section.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* Panel Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.stat-card .stat-icon.green {
    background: var(--success-light);
    color: var(--primary);
}

.stat-card .stat-icon.blue {
    background: var(--info-light);
    color: var(--info);
}

.stat-card .stat-icon.yellow {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card .stat-icon.red {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-card h3 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* Panel Tables */
.data-table-wrap {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.data-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.data-table-header h3 {
    font-size: 1.1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.data-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tr:hover td {
    background: var(--bg-tertiary);
}

.data-table .url-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table .short-link {
    color: var(--primary);
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.status-badge:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.status-badge.active {
    background: var(--success-light);
    color: var(--primary-dark);
}

[data-theme="dark"] .status-badge.active {
    color: var(--primary);
}

.status-badge.inactive {
    background: var(--danger-light);
    color: var(--danger);
}

.status-badge.broken {
    background: var(--warning-light);
    color: var(--warning);
}

/* Action buttons in tables */
.action-btns {
    display: flex;
    gap: 6px;
}

.action-btns .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    background: var(--bg-input);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btns .btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.action-btns .btn-icon.delete:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ═══════════════════════════════════════
   PAGE EDITOR (3-LAYER)
   ═══════════════════════════════════════ */
.page-editor-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page-editor-modal.show {
    display: flex;
}

.page-editor {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.page-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.editor-layer {
    padding: 28px;
    border-bottom: 1px solid var(--border);
}

.editor-layer:last-child {
    border-bottom: none;
}

.layer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text);
}

.layer-title .layer-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.layer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.layer-grid .full-width {
    grid-column: 1 / -1;
}

.color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker-wrap input[type="color"] {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px;
    cursor: pointer;
    background: transparent;
}

/* Extra links editor */
.extra-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.extra-link-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.extra-link-item .form-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.88rem;
}

/* Image Upload Area */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.image-upload-preview {
    position: relative;
    width: 100%;
}

.image-upload-preview img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
}

/* ═══════════════════════════════════════
   REDIRECT PAGE
   ═══════════════════════════════════════ */
.redirect-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    background: var(--bg);
}

.redirect-card {
    max-width: 500px;
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    animation: fadeInUp 0.6s ease;
}

.redirect-top-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary);
}

.redirect-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.redirect-card .redirect-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.countdown-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    position: relative;
}

.countdown-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-circle .circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 6;
}

.countdown-circle .circle-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.redirect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: white;
}

.redirect-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.redirect-extra-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.redirect-extra-links h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.redirect-extra-links a {
    display: block;
    padding: 10px 16px;
    margin-bottom: 8px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: var(--transition-fast);
}

.redirect-extra-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.redirect-social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.redirect-social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.redirect-social-links a:hover {
    background: var(--primary);
    color: white;
}

.redirect-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.redirect-branding {
    margin-top: 32px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.redirect-branding a {
    color: var(--primary);
    font-weight: 600;
}

/* ═══════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════ */
.contact-page {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
}

.contact-info-list .icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-form-card .btn {
    width: 100%;
    padding: 14px;
}

/* ═══════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.88rem;
}

.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════
   ALERTS / TOAST
   ═══════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
}

.toast.success {
    background: #059669;
}

.toast.error {
    background: #dc2626;
}

.toast.warning {
    background: #d97706;
}

.toast.info {
    background: #2563eb;
}

/* ═══════════════════════════════════════
   MODAL
   ═══════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 560px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.15rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════
   DESKTOP UTILITY
   ═══════════════════════════════════════ */
.mobile-auth-links {
    display: none !important;
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════
   QR SHARE DROPDOWN
   ═══════════════════════════════════════ */
.qr-share-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 6px;
    z-index: 10;
    display: none;
    animation: fadeInUp 0.2s ease;
    margin-bottom: 4px;
}

.qr-share-dropdown.show {
    display: block;
}

.qr-share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.qr-share-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.qr-share-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ═══════════════════════════════════════
   MOBILE BOTTOM NAV (Panel)
   ═══════════════════════════════════════ */
.panel-bottom-nav {
    display: none;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Typography ── */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    /* ── Desktop-only elements ── */
    .desktop-only {
        display: none !important;
    }

    /* ── Header ── */
    .main-header {
        --header-height: 60px;
        height: 60px;
    }

    .header-inner {
        padding: 0 12px;
    }

    .logo {
        font-size: 1.15rem;
        gap: 8px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-icon svg {
        width: 16px;
        height: 16px;
    }

    .header-actions {
        gap: 8px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    /* ── Mobile Toggle ── */
    .mobile-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        position: relative;
        z-index: 1002;
    }

    .mobile-toggle span {
        transition: all 0.3s ease;
    }

    /* ── Nav Links (hidden by default on mobile) ── */
    .nav-links {
        display: none;
    }

    /* ── Hero ── */
    .hero {
        padding: 48px 0 40px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    /* ── Shortener ── */
    .shortener-box {
        padding: 20px 16px;
        margin: 0 4px;
    }

    .shortener-input-wrap {
        flex-direction: column;
    }

    .shortener-input-wrap .form-input {
        font-size: 0.95rem;
        padding: 12px 14px;
    }

    .shortener-input-wrap .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .shortener-options {
        flex-direction: column;
    }

    .shortener-options .form-input {
        min-width: 0;
        width: 100%;
    }

    .shortener-result .result-actions {
        flex-wrap: wrap;
    }

    /* ── Features ── */
    .features {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 8px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    /* ── Steps ── */
    .how-it-works {
        padding: 48px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-card {
        padding: 24px 16px;
    }

    /* ── Stats ── */
    .stats-bar {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-item h3 {
        font-size: 1.6rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    /* ── Footer ── */
    .main-footer {
        padding: 32px 0 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* ── Auth Pages ── */
    .auth-page {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    /* ── Contact ── */
    .contact-page {
        padding: 40px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-form-card {
        padding: 24px 20px;
    }

    /* ── Panel Layout ── */
    .panel-sidebar {
        display: none;
    }

    .panel-content {
        padding: 16px 12px 80px 12px;
    }

    .panel-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        background: var(--bg-card);
        border-top: 1px solid var(--border);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
        padding: 4px 0;
        justify-content: space-around;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 4px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 600;
        transition: var(--transition-fast);
        border-radius: var(--radius-sm);
        min-width: 48px;
    }

    .bottom-nav-item.active,
    .bottom-nav-item:hover {
        color: var(--primary);
    }

    .bottom-nav-item.active {
        background: var(--primary-light);
    }

    .bottom-nav-icon {
        font-size: 1.15rem;
        line-height: 1;
    }

    .bottom-nav-label {
        white-space: nowrap;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card h3 {
        font-size: 1.3rem;
    }

    .stat-card p {
        font-size: 0.8rem;
    }

    /* ── Tables (horizontal scroll) ── */
    .data-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 580px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .data-table-header {
        padding: 14px 16px;
    }

    /* ── Page Editor Modal ── */
    .page-editor {
        max-width: 100%;
        max-height: 95vh;
    }

    .page-editor-header {
        padding: 14px 16px;
    }

    .editor-layer {
        padding: 16px;
    }

    .layer-grid {
        grid-template-columns: 1fr;
    }

    /* ── Modals ── */
    .modal-overlay {
        padding: 12px;
    }

    .modal {
        padding: 24px 16px;
    }

    /* ── Toast ── */
    .toast-container {
        top: auto;
        bottom: 16px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: auto;
        font-size: 0.85rem;
        padding: 12px 16px;
    }

    /* ── FAQ ── */
    .faq-section {
        padding: 48px 0;
    }

    .faq-question {
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    .faq-item.open .faq-answer {
        padding: 0 16px 14px;
    }

    /* ── Bulk Section ── */
    .bulk-section {
        max-width: 100%;
    }

    .bulk-result-table {
        font-size: 0.78rem;
        display: block;
        overflow-x: auto;
    }

    /* ── Search Box ── */
    .search-box {
        flex-direction: column;
    }

    /* ── Pagination ── */
    .pagination {
        flex-wrap: wrap;
        padding: 12px 8px;
    }

    .pagination button {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* ── Container ── */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* ── Chart ── */
    .chart-bars {
        height: 140px;
    }

    .chart-container {
        padding: 16px;
    }
}

/* ═══════════════════════════════════════
   MOBILE NAV OPEN STATE
   ═══════════════════════════════════════ */
.mobile-nav-open .mobile-nav-backdrop {
    display: block;
}

.mobile-nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 16px 20px 24px;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border);
    animation: mobileSlideDown 0.3s ease;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.mobile-nav-open .nav-links a {
    display: block;
    padding: 14px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--text);
}

.mobile-nav-open .nav-links a:hover,
.mobile-nav-open .nav-links a.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* Mobile auth links inside nav */
.mobile-nav-open .mobile-auth-links {
    display: block !important;
    list-style: none;
}

.mobile-auth-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.mobile-auth-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-auth-btn.mobile-register {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.mobile-auth-btn.mobile-register:hover {
    opacity: 0.9;
    color: white;
}

.mobile-auth-btn.mobile-logout {
    color: var(--danger);
}

.mobile-auth-btn.mobile-logout:hover {
    background: var(--danger-light);
}

/* Hamburger → X animation */
.mobile-nav-open .mobile-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-open .mobile-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-nav-open .mobile-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Panel sidebar on mobile - removed to prevent conflict with nav-links */
/* Mobile bottom-nav is now used instead */

@keyframes mobileSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileSlideRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════
   EXTRA SMALL SCREENS (≤ 380px)
   ═══════════════════════════════════════ */
@media (max-width: 380px) {
    .logo {
        font-size: 1rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .shortener-box {
        padding: 16px 12px;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .stat-card h3 {
        font-size: 1.15rem;
    }
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════
   TAG BADGES
   ═══════════════════════════════════════ */
.tag-badge {
    display: inline-block;
    padding: 2px 10px;
    margin: 2px 4px 2px 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--primary-light);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    line-height: 1.6;
    white-space: nowrap;
    vertical-align: middle;
}

[data-theme="dark"] .tag-badge {
    color: var(--primary);
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.2);
}

/* ═══════════════════════════════════════
   PRO-LOCK OVERLAY (Membership Gating)
   ═══════════════════════════════════════ */
.pro-locked-wrapper {
    position: relative;
}

.pro-locked-wrapper .pro-locked-content {
    filter: blur(4px);
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.pro-locked-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.pro-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
    white-space: nowrap;
}

.pro-upgrade-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.45);
    color: white;
}

.pro-upgrade-btn .pro-icon {
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════ */
.pricing-page {
    padding: 80px 0 60px;
    min-height: calc(100vh - var(--header-height));
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.pricing-header .gradient-text {
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 80px;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #06b6d4);
}

.pricing-badge {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.pricing-card-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.pricing-price {
    margin-bottom: 32px;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.pricing-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    vertical-align: super;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    width: 20px;
    height: 20px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    font-weight: 700;
}

.pricing-features .cross {
    width: 20px;
    height: 20px;
    background: var(--danger-light);
    color: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    font-weight: 700;
}

.pricing-features .value {
    margin-left: auto;
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

.pricing-card .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* Comparison Table */
.comparison-section {
    max-width: 900px;
    margin: 0 auto 80px;
}

.comparison-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table thead th {
    padding: 20px 24px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border);
    color: var(--text);
}

.comparison-table thead th:first-child {
    text-align: left;
    width: 50%;
}

.comparison-table tbody td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.92rem;
    color: var(--text-secondary);
    text-align: center;
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--bg-secondary);
}

.comparison-table .icon-check {
    color: var(--success);
    font-size: 1.1rem;
}

.comparison-table .icon-cross {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════
   PLAN SELECTION PAGE
   ═══════════════════════════════════════ */
.plan-selection-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.plan-selection-wrap {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.plan-selection-wrap h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.plan-selection-wrap>p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}

.plan-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-align: center;
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.plan-card.pro-card {
    border-color: rgba(245, 158, 11, 0.4);
}

.plan-card.pro-card:hover,
.plan-card.pro-card.selected {
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.plan-card .plan-emoji {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.plan-card h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.plan-card .plan-price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0;
}

.plan-card.pro-card .plan-price-tag {
    color: #f59e0b;
}

.plan-card .plan-price-tag small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-card .plan-features-list {
    list-style: none;
    text-align: left;
    margin-top: 16px;
}

.plan-card .plan-features-list li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-card .plan-features-list .feat-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
}

.plan-select-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
}

/* Dashboard plan card */
.plan-info-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.plan-info-card .plan-info-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.plan-info-card .plan-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.plan-info-card .plan-name {
    font-weight: 700;
    font-size: 1rem;
}

.plan-info-card .plan-usage {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.plan-usage-bar {
    width: 100%;
    max-width: 200px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.plan-usage-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #06b6d4);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* SSS (FAQ on pricing page) */
.pricing-faq {
    max-width: 700px;
    margin: 0 auto 60px;
}

.pricing-faq h2 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.8rem;
}

/* ═══════════════════════════════════════
   RESPONSIVE – Pricing / Plan
   ═══════════════════════════════════════ */
@media (max-width: 768px) {

    .pricing-cards,
    .plan-cards {
        grid-template-columns: 1fr;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }

    .pricing-price .amount {
        font-size: 2.2rem;
    }

    .plan-selection-wrap h1 {
        font-size: 1.6rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 10px 12px;
    }

    .pro-upgrade-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════
   PAYMENT PAGE (odeme.php)
   ═══════════════════════════════════════ */
.payment-page {
    min-height: calc(100vh - var(--header-height));
    padding: 48px 24px;
    background: var(--bg-secondary);
    position: relative;
}

.payment-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.payment-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.payment-section-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.payment-section-card:hover {
    box-shadow: var(--shadow-lg);
}

.payment-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
    flex-shrink: 0;
}

/* Ödeme Yöntemi Badge */
.payment-method-badges {
    margin-bottom: 16px;
}

.payment-method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.payment-method-badge img {
    height: 36px;
    padding: 6px 14px;
}

.payment-method-badge.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 4px 12px var(--primary-glow);
}

.payment-card-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.card-type-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

/* Form alanları */
.pform-group {
    margin-bottom: 18px;
    flex: 1;
}

.pform-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.pform-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.pform-input::placeholder {
    color: var(--text-muted);
}

.pform-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.pform-input option {
    background: var(--bg);
    color: var(--text);
}

.pform-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Ay Seçim Tabları */
.month-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 28px;
}

.month-tab {
    padding: 12px 8px;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.month-tab:hover {
    border-color: var(--primary);
    color: var(--text);
    background: var(--primary-light);
}

.month-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Fiyat Detayları */
.price-details {
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.price-row.total {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.price-divider {
    height: 1px;
    background: var(--border);
}

.price-divider.thick {
    height: 2px;
    background: var(--border);
    margin: 4px 0;
}

.total-amount {
    text-align: right;
}

.total-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.billing-note {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

/* Ödeme Butonu */
.payment-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.payment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.payment-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spinner-sm {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Yasal Not */
.payment-legal-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 16px;
}

.payment-legal-note a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.payment-legal-note a:hover {
    color: var(--primary-hover);
}

/* iyzico Modal */
.iyzico-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.iyzico-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

.iyzico-modal-content h3 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.iyzico-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.iyzico-modal-close:hover {
    color: var(--danger);
}

#iyzicoFormContainer {
    min-height: 200px;
}

#iyzipay-checkout-form {
    min-height: 300px;
}

/* ═══════════════════════════════════════
   PAYMENT RESULT PAGE (odeme-sonuc.php)
   ═══════════════════════════════════════ */
.payment-result-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg-secondary);
}

.payment-result-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.5s ease;
}

.payment-result-card.success {
    border-color: rgba(16, 185, 129, 0.3);
}

.payment-result-card.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.result-icon {
    margin-bottom: 24px;
}

.payment-result-card h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text);
}

.result-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.result-details {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 28px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.status-active {
    color: var(--primary);
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Payment Page Responsive ── */
@media (max-width: 900px) {
    .payment-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .payment-summary-panel {
        order: -1;
    }
}

@media (max-width: 768px) {
    .payment-page {
        padding: 28px 16px;
    }

    .payment-section-card {
        padding: 20px 18px;
    }

    .pform-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .month-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-result-card {
        padding: 32px 24px;
    }

    .iyzico-modal-content {
        padding: 24px;
        margin: 16px;
    }

    .payment-legal-note {
        padding: 12px 16px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .payment-page {
        padding: 20px 12px;
    }

    .payment-section-card {
        padding: 16px 14px;
        border-radius: var(--radius);
    }

    .payment-section-title {
        font-size: 1.05rem;
    }

    .month-tab {
        padding: 10px 6px;
        font-size: 0.82rem;
    }

    .payment-submit-btn {
        padding: 14px;
        font-size: 0.95rem;
    }

    .price-row {
        font-size: 0.88rem;
    }

    .total-price {
        font-size: 1rem;
    }

    .payment-result-card {
        padding: 24px 16px;
    }

    .payment-result-card h1 {
        font-size: 1.4rem;
    }
}