/* ========================================
   Adres.vin Kısaltma Servisi - Ana CSS
   ======================================== */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #cbd5e1;
    --light: #f1f5f9;
    --lighter: #f8fafc;
    --white: #ffffff;
    
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-3: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --surface-dashboard: rgba(255, 255, 255, 0.92);
    --stroke-soft: rgba(99, 102, 241, 0.1);
    --glow-primary: 0 12px 40px rgba(99, 102, 241, 0.12);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--lighter);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

input, textarea {
    font-family: var(--font);
    outline: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--gray-lighter);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

/* Siyah PNG koyu zeminde okunur olsun diye (footer, giriş paneli) */
.logo-img--on-dark {
    filter: invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    position: relative;
}

.nav-links a:hover {
    color: var(--dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: var(--radius);
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--gray);
}

.lang-btn.active {
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
    color: var(--dark);
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--dark);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.stat-label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

/* Dashboard Preview */
.dashboard-preview {
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--dark-light);
    border-bottom: 1px solid var(--dark-lighter);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.preview-title {
    font-size: 12px;
    color: var(--gray-light);
    font-weight: 500;
}

.preview-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--dark-light);
    border-radius: var(--radius);
    border: 1px solid var(--dark-lighter);
}

.preview-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-label {
    font-size: 11px;
    color: var(--gray);
}

.preview-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.preview-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    padding: 16px;
    background: var(--dark-light);
    border-radius: var(--radius);
    border: 1px solid var(--dark-lighter);
}

.chart-bar {
    flex: 1;
    background: var(--gradient-1);
    border-radius: 3px 3px 0 0;
    min-height: 10px;
    opacity: 0.8;
    transition: var(--transition);
}

.chart-bar:hover {
    opacity: 1;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--lighter);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 20px;
    margin-bottom: 20px;
}

.feature-card:nth-child(2) .feature-icon { background: var(--gradient-2); }
.feature-card:nth-child(3) .feature-icon { background: var(--gradient-3); }
.feature-card:nth-child(4) .feature-icon { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.feature-card:nth-child(5) .feature-icon { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); }
.feature-card:nth-child(6) .feature-icon { background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%); }

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* ========================================
   HOW IT WORKS
   ======================================== */

.how-it-works {
    padding: 100px 0;
    background: var(--lighter);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary);
    font-size: 24px;
    border-radius: var(--radius);
    margin: 0 auto 16px;
    box-shadow: var(--shadow);
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    padding: 0 20px;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--gray-lighter);
    margin-top: 24px;
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--gray-lighter);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* ========================================
   PRICING
   ======================================== */

.pricing {
    padding: 100px 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    padding: 32px;
    background: var(--lighter);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient-1);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-xl);
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.pricing-price .currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-top: 4px;
}

.pricing-price .amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.pricing-price .period {
    font-size: 14px;
    color: var(--gray);
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--dark);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.pricing-features li i {
    font-size: 12px;
}

.pricing-features li i.fa-check {
    color: var(--success);
}

.pricing-features li i.fa-times {
    color: var(--gray-lighter);
}

.pricing-features li .disabled {
    color: var(--gray-light);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta {
    padding: 100px 0;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: 64px 0 24px;
    background: var(--dark);
    color: var(--gray-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand .logo-img {
    height: 40px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray);
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--gray);
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--dark-lighter);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray);
}

/* ========================================
   AUTH PAGES (Login / Register)
   ======================================== */

.auth-page {
    background: var(--lighter);
    min-height: 100vh;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-left {
    background: var(--dark);
    padding: 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0.1;
}

.auth-brand {
    position: relative;
    z-index: 1;
}

.auth-brand .logo {
    color: var(--white);
}

.auth-brand .logo-img {
    height: 40px;
}

.auth-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.illustration-content {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--dark-light);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.floating-card i {
    color: var(--primary-light);
    font-size: 16px;
}

.card-1 {
    top: 20px;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 120px;
    right: 0;
    animation-delay: -2s;
}

.card-3 {
    bottom: 40px;
    left: 40px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.auth-testimonial {
    position: relative;
    z-index: 1;
    padding: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
}

.auth-testimonial p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.author-title {
    font-size: 12px;
    color: var(--gray);
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-lang {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-bottom: 24px;
    padding: 2px;
    gap: 0;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-sizing: border-box;
}

.auth-lang .lang-btn {
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    min-height: 30px;
    border-radius: calc(var(--radius-sm) - 1px);
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--gray);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
}

.auth-form .form-row > .form-group {
    min-width: 0;
}

.auth-form .form-row .input-group {
    min-width: 0;
}

.auth-form .form-row .input-group input {
    min-width: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: var(--radius);
    padding: 0 14px;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-group i {
    color: var(--gray-light);
    font-size: 14px;
}

.input-group input {
    flex: 1;
    padding: 12px 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--dark);
}

.input-group input::placeholder {
    color: var(--gray-lighter);
}

.toggle-password {
    padding: 4px;
    color: var(--gray-light);
    font-size: 14px;
}

.toggle-password:hover {
    color: var(--dark);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray);
}

/* .form-group label { display: block } checkbox satırını bozmasın */
.auth-form .form-group label.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.45;
}

.auth-form .form-group label.checkbox-label .checkmark {
    margin-top: 2px;
}

.auth-form .form-group label.checkbox-label > span:last-child {
    flex: 1;
    min-width: 0;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-lighter);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--white);
    font-size: 10px;
}

.terms-label a {
    color: var(--primary);
    text-decoration: underline;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--light);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 30%;
    background: var(--danger);
    border-radius: 2px;
    transition: var(--transition);
}

.strength-text {
    font-size: 11px;
    color: var(--danger);
    margin-top: 4px;
    display: block;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light);
}

.auth-divider span {
    font-size: 13px;
    color: var(--gray-light);
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--gray-lighter);
    background: var(--lighter);
}

.social-btn i {
    font-size: 16px;
}

.social-btn.google i { color: #ea4335; }
.social-btn.github i { color: var(--dark); }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--light);
}

.auth-footer p {
    font-size: 14px;
    color: var(--gray);
    display: inline;
}

.auth-footer a {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-left: 4px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   DASHBOARD
   ======================================== */

.dashboard-page {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 16px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-item:hover {
    background: var(--lighter);
    color: var(--dark);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-plan {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.sidebar-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark);
    border-radius: var(--radius);
}

.sidebar-toggle:hover {
    background: var(--lighter);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.notification-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 18px;
    border-radius: var(--radius);
    position: relative;
}

.notification-btn:hover {
    background: var(--lighter);
    color: var(--dark);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
}

/* Dashboard Content */
.dashboard-content {
    padding: 32px;
    flex: 1;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.page-header p {
    font-size: 14px;
    color: var(--gray);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 20px;
}

.stat-icon.blue {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.stat-info .stat-label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.stat-info .stat-sub {
    font-size: 11px;
    color: var(--gray);
    font-weight: 400;
    margin-top: 6px;
    line-height: 1.35;
    max-width: 220px;
}

.stat-info .stat-sub.muted {
    opacity: 0.88;
}

/* Shorten Section */
.shorten-section {
    margin-bottom: 32px;
}

.shorten-section .section-header {
    text-align: left;
    margin-bottom: 16px;
}

.shorten-section .section-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.shorten-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

.shorten-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shorten-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.domain-prefix {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    padding-right: 0;
    white-space: nowrap;
}

/* Links Table */
.links-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: var(--radius);
    padding: 0 14px;
    flex: 1;
    max-width: 400px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-box i {
    color: var(--gray-light);
    font-size: 14px;
}

.search-box input {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--dark);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.links-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    overflow-x: auto;
}

.links-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.links-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--lighter);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.links-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 14px;
}

.links-table tbody tr:hover {
    background: var(--lighter);
}

.links-table tbody tr:last-child td {
    border-bottom: none;
}

.link-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.short-url {
    font-weight: 600;
    color: var(--primary);
}

a.short-url.short-url-link {
    display: inline-block;
    max-width: 100%;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}

a.short-url.short-url-link:hover {
    text-decoration: underline;
}

.copy-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    font-size: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--light);
    color: var(--primary);
}

.url-cell {
    max-width: 250px;
}

.long-url {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--gray);
    font-size: 13px;
}

.clicks-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-xl);
}

.clicks-badge i {
    font-size: 11px;
}

.date {
    font-size: 13px;
    color: var(--gray);
}

.status-badge {
    display: inline-flex;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-xl);
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.inactive {
    background: rgba(100, 116, 139, 0.1);
    color: var(--gray);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--light);
}

.action-btn.edit:hover { color: var(--primary); }
.action-btn.analytics:hover { color: var(--accent); }
.action-btn.qr:hover { color: var(--secondary); }
.action-btn.delete:hover { color: var(--danger); background: rgba(239, 68, 68, 0.1); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-dots {
    color: var(--gray);
    font-size: 14px;
}

/* Chart Section */
.chart-section {
    margin-top: 32px;
}

.chart-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 16px;
}

.chart-section .section-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.chart-filters {
    display: flex;
    gap: 4px;
    background: var(--white);
    padding: 3px;
    border-radius: var(--radius);
    border: 1px solid var(--light);
}

.filter-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.filter-btn:hover:not(.active) {
    color: var(--dark);
    background: var(--lighter);
}

.chart-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

.chart-placeholder {
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 200px;
    padding-bottom: 8px;
}

.chart-bars .chart-bar {
    flex: 1;
    background: var(--gradient-1);
    border-radius: 6px 6px 0 0;
    min-height: 20px;
    position: relative;
    transition: var(--transition);
    opacity: 0.85;
}

.chart-bars .chart-bar:hover {
    opacity: 1;
}

.chart-bars .chart-bar span {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    opacity: 0;
    transition: var(--transition);
}

.chart-bars .chart-bar:hover span {
    opacity: 1;
}

.chart-labels {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--light);
}

.chart-labels span {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    transform: scale(0.95) translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content.modal-sm {
    max-width: 400px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--light);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 16px;
    border-radius: var(--radius);
}

.modal-close:hover {
    background: var(--lighter);
    color: var(--dark);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--light);
}

.delete-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    font-size: 28px;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.modal-body > p {
    text-align: center;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* QR Code Modal */
.qr-code-display {
    text-align: center;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lighter);
    border: 2px dashed var(--gray-lighter);
    border-radius: var(--radius);
    margin: 0 auto 16px;
}

.qr-placeholder i {
    font-size: 80px;
    color: var(--gray-lighter);
}

.qr-url {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobil navbar — açılır menü */
    .navbar .container {
        flex-wrap: wrap;
        align-items: center;
        height: auto;
        min-height: 64px;
        padding-top: 12px;
        padding-bottom: 12px;
        column-gap: 12px;
        row-gap: 0;
    }

    .navbar .logo {
        order: 1;
        flex-shrink: 0;
    }

    .mobile-menu-btn {
        display: inline-flex;
        order: 2;
        margin-left: auto;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(15, 23, 42, 0.1);
        background: var(--white);
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-menu-btn:hover {
        border-color: rgba(99, 102, 241, 0.35);
        color: var(--primary);
    }

    .nav-links {
        order: 3;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px 0 0;
        margin-top: 12px;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    .navbar.nav-open .nav-links {
        display: flex;
    }

    .nav-links a {
        padding: 14px 8px;
        font-size: 16px;
        border-radius: var(--radius-sm);
    }

    .nav-links a:hover {
        background: rgba(99, 102, 241, 0.07);
    }

    .nav-actions {
        order: 4;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 0 4px;
    }

    .navbar.nav-open .nav-actions {
        display: flex;
    }

    .nav-actions .btn {
        display: inline-flex !important;
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .nav-actions .lang-switcher {
        justify-content: center;
        align-self: center;
    }

    body.navbar-open {
        overflow: hidden;
    }

    .hero-content h1 {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
        gap: 32px;
    }
    
    .step-connector {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .shorten-inputs {
        grid-template-columns: 1fr;
    }
    
    .links-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: min(300px, 88vw);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 16px 0 48px rgba(15, 23, 42, 0.2);
    }
    
    .sidebar-close {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .chart-section .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .top-bar {
        padding: 12px 20px;
    }
}
/* ========================================
   ANALYTICS PAGE STYLES
   ======================================== */

.analytics-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.date-range-picker {
    display: flex;
    gap: 4px;
    background: var(--white);
    padding: 3px;
    border-radius: var(--radius);
    border: 1px solid var(--light);
}

.date-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.date-btn.active {
    background: var(--primary);
    color: var(--white);
}

.date-btn:hover:not(.active) {
    color: var(--dark);
    background: var(--lighter);
}

.link-filter select {
    padding: 10px 14px;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--dark);
    background: var(--white);
    cursor: pointer;
    min-width: 200px;
}

.link-filter select:focus {
    border-color: var(--primary);
}

.stat-info .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.stat-change.neutral {
    color: var(--gray);
    font-weight: 500;
}

/* Analytics Chart Section */
.analytics-chart-section {
    margin-bottom: 24px;
}

.analytics-chart-section .section-header {
    text-align: left;
    margin-bottom: 16px;
}

.analytics-chart-section .section-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.analytics-chart {
    padding: 24px;
}

.analytics-chart-header {
    margin-bottom: 20px;
}

.chart-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.analytics-chart-body {
    padding: 0 10px;
}

.analytics-line-chart {
    width: 100%;
    overflow-x: auto;
}

.line-chart-svg {
    width: 100%;
    height: 250px;
    min-width: 600px;
}

.analytics-chart-labels {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--light);
}

.analytics-chart-labels span {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.analytics-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
}

.analytics-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--light);
}

.analytics-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.view-all-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Top Links List */
.top-links-list {
    padding: 8px 0;
}

.top-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid var(--light);
    gap: 16px;
}

.top-link-item:last-child {
    border-bottom: none;
}

.top-link-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.top-link-short {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.top-link-long {
    font-size: 12px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-link-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 80px;
}

.top-link-clicks {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.progress-bar {
    width: 80px;
    height: 4px;
    background: var(--light);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Device Chart */
.device-chart {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.donut-chart {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

.donut-label {
    font-size: 11px;
    color: var(--gray);
}

.device-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.device-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.device-name {
    font-size: 14px;
    color: var(--dark);
    flex: 1;
}

.device-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

/* Countries List */
.countries-list,
.browsers-list {
    padding: 8px 0;
}

.country-item,
.browser-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    gap: 16px;
}

.country-info,
.browser-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.country-flag {
    font-size: 20px;
}

.browser-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.country-name,
.browser-name {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.country-bar-wrapper,
.browser-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.country-bar,
.browser-bar {
    flex: 1;
    height: 6px;
    background: var(--light);
    border-radius: 3px;
    overflow: hidden;
}

.country-bar-fill,
.browser-bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.country-percent,
.browser-percent {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    min-width: 36px;
    text-align: right;
}

/* Referrers List */
.referrers-list {
    padding: 8px 0;
}

.referrer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid var(--light);
}

.referrer-item:last-child {
    border-bottom: none;
}

.referrer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.referrer-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.referrer-name {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.referrer-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

/* Hourly Chart */
.hourly-chart {
    padding: 24px;
}

.hourly-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 160px;
    padding-bottom: 8px;
}

.hourly-bar {
    flex: 1;
    background: var(--gradient-1);
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    position: relative;
    transition: var(--transition);
    opacity: 0.8;
    cursor: pointer;
}

.hourly-bar:hover {
    opacity: 1;
}

.hourly-tooltip {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.hourly-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--dark);
}

.hourly-bar:hover .hourly-tooltip {
    opacity: 1;
}

.hourly-labels {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--light);
}

.hourly-labels span {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
}


/* ========================================
   SETTINGS PAGE STYLES
   ======================================== */

.settings-tabs {
    display: flex;
    gap: 4px;
    background: var(--white);
    padding: 4px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 24px;
    overflow-x: auto;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.settings-tab i {
    font-size: 14px;
}

.settings-tab:hover {
    color: var(--dark);
    background: var(--lighter);
}

.settings-tab.active {
    background: var(--primary);
    color: var(--white);
}

.settings-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.settings-card.danger-zone {
    border-color: rgba(239, 68, 68, 0.2);
}

.settings-card.danger-zone .settings-card-header h3 {
    color: var(--danger);
}

.settings-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--light);
}

.settings-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.settings-card-header p {
    font-size: 13px;
    color: var(--gray);
}

.settings-card-body {
    padding: 24px;
}

/* Avatar Upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--light);
}

.current-avatar {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-avatar.user-avatar--img {
    padding: 0;
    overflow: hidden;
}

.user-avatar.user-avatar--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-avatar.current-avatar--img {
    padding: 0;
    overflow: hidden;
}

.current-avatar.current-avatar--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-actions {
    display: flex;
    gap: 10px;
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    display: block;
}

.settings-form .input-group {
    background: var(--lighter);
}

.settings-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--dark);
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
}

.settings-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

/* Danger Zone */
.danger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.danger-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 4px;
}

.danger-info p {
    font-size: 13px;
    color: var(--gray);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-lighter);
    border-radius: 26px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Notification List */
.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--light);
    gap: 16px;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.notification-info p {
    font-size: 13px;
    color: var(--gray);
}

/* Plan Card */
.plan-card {
    background: var(--lighter);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    border: 2px solid var(--primary);
}

.plan-card.current {
    background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(139,92,246,0.05) 100%);
}

.plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: var(--success);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.plan-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: var(--white);
    font-size: 20px;
    border-radius: var(--radius);
}

.plan-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.plan-info p {
    font-size: 13px;
    color: var(--gray);
}

.plan-price {
    margin-bottom: 20px;
}

.plan-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
}

.plan-period {
    font-size: 14px;
    color: var(--gray);
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.plan-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--dark);
}

.plan-feature-item i {
    color: var(--success);
    font-size: 12px;
}

.plan-actions {
    margin-top: 8px;
}

/* Billing Info */
.billing-info {
    padding: 20px 0;
    border-top: 1px solid var(--light);
    margin-bottom: 20px;
}

.billing-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.billing-label {
    font-size: 14px;
    color: var(--gray);
}

.billing-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.billing-value.status-active {
    color: var(--success);
}

.billing-value i {
    font-size: 20px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Invoice History */
.invoice-history {
    padding-top: 20px;
    border-top: 1px solid var(--light);
}

.invoice-history h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.invoice-list {
    display: flex;
    flex-direction: column;
}

.invoice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--light);
}

.invoice-item:last-child {
    border-bottom: none;
}

.invoice-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.invoice-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.invoice-plan {
    font-size: 12px;
    color: var(--gray);
}

.invoice-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.invoice-download {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.invoice-download:hover {
    background: var(--lighter);
    color: var(--primary);
}


/* ========================================
   RESPONSIVE FOR ANALYTICS & SETTINGS
   ======================================== */

@media (max-width: 1024px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .device-chart {
        flex-direction: column;
        text-align: center;
    }
    
    .device-legend {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .analytics-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-range-picker {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .link-filter select {
        width: 100%;
    }
    
    .settings-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .avatar-upload {
        flex-direction: column;
        text-align: center;
    }
    
    .danger-item {
        flex-direction: column;
        text-align: center;
    }
    
    .country-item,
    .browser-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .country-bar-wrapper,
    .browser-bar-wrapper {
        width: 100%;
    }
    
    .hourly-bars {
        gap: 2px;
    }
    
    .top-link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .top-link-stats {
        align-items: flex-start;
        width: 100%;
    }
    
    .progress-bar {
        width: 100%;
    }
}


/* ========================================
   LEGAL PAGES (Privacy & Terms)
   ======================================== */

.legal-page {
    padding: 120px 0 80px;
    background: var(--lighter);
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
    padding-top: 40px;
}

.legal-header h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.legal-date {
    font-size: 14px;
    color: var(--gray);
}

.legal-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Table of Contents */
.legal-toc {
    position: sticky;
    top: 100px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

.legal-toc h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light);
}

.legal-toc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-toc li a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--gray);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    line-height: 1.4;
}

.legal-toc li a:hover {
    background: var(--lighter);
    color: var(--primary);
}

/* Legal Body */
.legal-body {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.04);
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--light);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.legal-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0 12px;
}

.legal-section p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-section ul {
    list-style: none;
    margin: 12px 0;
}

.legal-section ul li {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    padding: 6px 0 6px 24px;
    position: relative;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-contact {
    background: var(--lighter);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 16px;
}

.legal-contact p {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark);
}

.legal-contact p:last-child {
    margin-bottom: 0;
}

.legal-contact i {
    color: var(--primary);
    width: 20px;
    text-align: center;
    margin-right: 8px;
}


/* ========================================
   RESPONSIVE FOR LEGAL PAGES
   ======================================== */

@media (max-width: 1024px) {
    .legal-content {
        grid-template-columns: 1fr;
    }
    
    .legal-toc {
        position: static;
        order: -1;
    }
    
    .legal-toc ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-header h1 {
        font-size: 28px;
    }
    
    .legal-body {
        padding: 24px;
    }
    
    .legal-toc ul {
        grid-template-columns: 1fr;
    }
    
    .legal-section h2 {
        font-size: 18px;
    }
    
    .legal-section p,
    .legal-section ul li {
        font-size: 14px;
    }
}

/* ========================================
   APP / DASHBOARD — görsel iyileştirmeler
   (Dashboard, Linklerim, Analizler, Ayarlar)
   ======================================== */

.dashboard-page {
    background:
        radial-gradient(ellipse 100% 90% at 100% 0%, rgba(99, 102, 241, 0.085), transparent 52%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(236, 72, 153, 0.06), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(6, 182, 212, 0.04), transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.dashboard-page .sidebar {
    background: linear-gradient(165deg, #ffffff 0%, #fafbfc 55%, #f6f8fc 100%);
    border-right: 1px solid var(--stroke-soft);
    box-shadow: 10px 0 48px rgba(15, 23, 42, 0.06);
}

.dashboard-page .sidebar-header {
    border-bottom-color: var(--stroke-soft);
}

.dashboard-page .sidebar-footer {
    border-top-color: var(--stroke-soft);
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03));
}

.dashboard-page .user-info {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: var(--shadow-sm);
}

.dashboard-page .user-avatar {
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.dashboard-page .user-plan {
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dashboard-page .logo-img {
    height: 40px;
}

.dashboard-page .sidebar-nav .nav-item {
    border-radius: 12px;
    padding: 12px 16px;
}

.dashboard-page .sidebar-nav .nav-item:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.dashboard-page .sidebar-nav .nav-item:hover:not(.active) {
    background: rgba(241, 245, 249, 0.9);
    color: var(--dark);
}

.dashboard-page .sidebar-nav .nav-item.active {
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.1));
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: var(--glow-primary);
}

.dashboard-page .sidebar-nav .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 56%;
    min-height: 18px;
    border-radius: 0 6px 6px 0;
    background: var(--gradient-1);
}

.dashboard-page .main-content {
    position: relative;
}

.dashboard-page .main-content::before {
    content: '';
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: radial-gradient(ellipse 80% 100% at 50% -40%, rgba(99, 102, 241, 0.06), transparent 70%);
    z-index: 0;
}

.dashboard-page .top-bar {
    position: relative;
    z-index: 1;
    background: var(--surface-dashboard);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--stroke-soft);
    box-shadow: 0 6px 32px rgba(15, 23, 42, 0.05);
}

.dashboard-page .sidebar-toggle {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-page .sidebar-toggle:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

.dashboard-page .top-bar .notification-btn {
    border-radius: 12px;
    border: 1px solid transparent;
}

.dashboard-page .top-bar .notification-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.12);
    color: var(--primary-dark);
}

.dashboard-page .top-bar .lang-switcher {
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    padding: 4px;
}

.dashboard-page .top-bar .lang-btn {
    border-radius: 9px;
    padding: 7px 14px;
}

.dashboard-page .top-bar .lang-btn.active {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 3px 14px rgba(99, 102, 241, 0.18);
}

.dashboard-page .dashboard-content {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px) 48px;
}

.dashboard-page .page-header {
    margin-bottom: clamp(24px, 3vw, 36px);
}

.dashboard-page .page-header h1 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.dashboard-page .page-header h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 12px;
    border-radius: 4px;
    background: var(--gradient-1);
}

.dashboard-page .page-header p {
    font-size: 15px;
    color: var(--gray);
    max-width: 52ch;
}

.dashboard-page .stats-grid {
    gap: clamp(14px, 2vw, 22px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.dashboard-page .stat-card {
    background: var(--surface-dashboard);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.045), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.dashboard-page .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09), var(--glow-primary);
}

.dashboard-page .stat-icon {
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.dashboard-page .shorten-card {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 253, 0.96) 100%);
    box-shadow: 0 8px 36px rgba(15, 23, 42, 0.055), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    overflow: hidden;
}

.dashboard-page .shorten-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.dashboard-page .shorten-section .section-header h2,
.dashboard-page .chart-section .section-header h2 {
    font-weight: 800;
    letter-spacing: -0.025em;
}

.dashboard-page .recent-links-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-page .recent-links-section .section-header h2 {
    font-weight: 800;
    letter-spacing: -0.025em;
}

.dashboard-page .chart-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 8px 36px rgba(15, 23, 42, 0.06);
    background: var(--surface-dashboard);
}

.dashboard-page .links-table-wrapper {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.09);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.055);
    background: var(--surface-dashboard);
}

.dashboard-page .links-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    letter-spacing: 0.06em;
}

.dashboard-page .links-table tbody tr {
    transition: background 0.25s var(--ease-smooth);
}

.dashboard-page .links-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.04), transparent);
}

.dashboard-page .action-btn {
    border-radius: 10px;
}

.dashboard-page .action-btn:hover {
    transform: scale(1.06);
}

.dashboard-page .pagination-btn {
    border-radius: 11px;
    border-color: rgba(99, 102, 241, 0.15);
}

.dashboard-page .pagination-btn.active {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.dashboard-page .search-box {
    border-radius: 14px;
    border-width: 1px;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.dashboard-page .analytics-filter-bar .date-range-picker {
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    padding: 4px;
}

.dashboard-page .analytics-filter-bar .date-btn {
    border-radius: 11px;
    padding: 10px 18px;
}

.dashboard-page .analytics-filter-bar .date-btn.active {
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.35);
}

.dashboard-page .analytics-chart-section .chart-card.analytics-chart {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 12px 44px rgba(15, 23, 42, 0.06);
    background: var(--surface-dashboard);
}

.dashboard-page .analytics-grid {
    gap: clamp(16px, 2vw, 24px);
}

.dashboard-page .analytics-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.09);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.045);
    transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.dashboard-page .analytics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.dashboard-page .analytics-card-header {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.04), transparent);
    border-bottom-color: rgba(99, 102, 241, 0.08);
}

.dashboard-page .country-bar,
.dashboard-page .browser-bar {
    height: 8px;
    border-radius: 99px;
}

.dashboard-page .country-bar-fill,
.dashboard-page .browser-bar-fill {
    border-radius: 99px;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.35);
}

.dashboard-page .hourly-bar {
    border-radius: 6px 6px 3px 3px;
}

.dashboard-page .settings-tabs {
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.dashboard-page .settings-tab {
    border-radius: 12px;
    padding: 12px 18px;
    transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}

.dashboard-page .settings-tab:hover:not(.active) {
    background: rgba(241, 245, 249, 0.95);
}

.dashboard-page .settings-tab.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.14));
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.22);
}

.dashboard-page .settings-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.055);
    background: var(--surface-dashboard);
    transition: box-shadow 0.35s var(--ease-smooth);
}

.dashboard-page .settings-card:hover {
    box-shadow: 0 14px 48px rgba(15, 23, 42, 0.07);
}

.dashboard-page .settings-card.danger-zone {
    border-color: rgba(239, 68, 68, 0.28);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.5), rgba(255, 255, 255, 0.92));
}

.dashboard-page .settings-card-header h3 {
    letter-spacing: -0.02em;
}

.dashboard-page .current-avatar {
    border-radius: 50%;
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.95);
}

.dashboard-page .plan-card.current {
    border-radius: var(--radius-lg);
    border-width: 2px;
    box-shadow: 0 14px 44px rgba(99, 102, 241, 0.18);
}

.dashboard-page .modal-overlay {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dashboard-page .modal-content {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2), var(--glow-primary);
}

.dashboard-page .modal-header {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), transparent);
}

@media (max-width: 768px) {
    .dashboard-page .dashboard-content .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page .top-bar {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 10px;
        padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
    }

    .dashboard-page .top-bar-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .dashboard-page .sidebar-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .dashboard-page .notification-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .modal .modal-content {
        margin: max(12px, env(safe-area-inset-top)) 16px 16px;
        max-width: calc(100vw - 32px);
        width: 100%;
        max-height: calc(100dvh - 28px);
    }

    .analytics-filter-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: 16px;
        scrollbar-width: thin;
        gap: 12px;
    }

    .analytics-filter-bar .date-range-picker {
        flex-wrap: nowrap;
        width: max-content;
    }

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

    .device-chart {
        flex-direction: column;
        align-items: stretch;
    }

    .hero {
        padding-top: 112px;
        padding-bottom: 72px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .dashboard-page .page-header h1::after {
        margin-top: 10px;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-page .stat-card:hover,
    .dashboard-page .analytics-card:hover,
    .dashboard-page .action-btn:hover {
        transform: none;
    }
}
