/* ============================================
   TrendAnahtarlık - Dijital Kartvizit Uygulaması
   Futuristik, Modern, Glassmorphism Tasarım
   ============================================ */

/* ⚡ PERFORMANCE OPTIMIZATIONS */
* {
    /* GPU acceleration for smooth animations */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Optimize image rendering */
img {
    content-visibility: auto;
    image-rendering: -webkit-optimize-contrast;
}

/* Lazy load images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Reduce paint areas */
.view {
    contain: layout style;
}

/* CSS Variables - Futuristik Renk Paleti */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-lg: 0 20px 60px 0 rgba(31, 38, 135, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --spacing: 1rem;
    
    /* Google Colors */
    --google-blue: #4285f4;
    --google-red: #ea4335;
    --google-yellow: #fbbc04;
    --google-green: #34a853;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.1;
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Futuristic Glow Effect */
.view::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--gray-light);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.toast.success::before { background: var(--success); }
.toast.error::before { background: var(--danger); }
.toast.warning::before { background: var(--warning); }
.toast.info::before { background: var(--primary); }

.toast .material-symbols-outlined {
    font-size: 24px;
}

.toast.success .material-symbols-outlined { color: var(--success); }
.toast.error .material-symbols-outlined { color: var(--danger); }
.toast.warning .material-symbols-outlined { color: var(--warning); }
.toast.info .material-symbols-outlined { color: var(--primary); }

/* Views */
.view {
    display: none;
    min-height: 100vh;
    position: relative;
}

/* Gizli view'ların yer kaplamaması için */
.view[style*="display: none"],
.view[style*="display:none"],
.view:not([style*="display: block"]):not([style*="display:block"]):not(.active) {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Görünen view */
.view[style*="display: block"],
.view[style*="display:block"],
.view.active {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* Show login by default until JS takes over */
#view-login {
    display: block;
}

/* ============================================
   AUTH PAGES (Login, Register, Reset)
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease;
    position: relative;
    overflow: hidden;
}

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

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-light), transparent);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.platform-logo {
    width: auto;
    max-width: 280px;
    height: 80px;
    margin: 0 auto 1rem;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.platform-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Fallback icon style when no logo */
.platform-logo.icon-fallback {
    width: 80px;
    height: 80px;
    background: var(--bg-gradient);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

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

.platform-logo .material-symbols-outlined {
    font-size: 48px;
    color: var(--white);
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.auth-header .subtitle {
    color: var(--gray-light);
    font-size: 1rem;
}

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

.auth-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-light);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray);
    font-size: 0.85rem;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-links a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn .material-symbols-outlined {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--bg-gradient);
    color: var(--white);
    width: 100%;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Google Button */
.btn-google {
    background: #ffffff;
    color: #444444;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: auto;
    margin: 0 auto;
    padding: 0.875rem 2rem;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

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

.auth-divider span {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-brand img {
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.navbar-brand .material-symbols-outlined {
    font-size: 32px;
    color: var(--primary-light);
}

.navbar-menu {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 70%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

/* ============================================
   HAMBURGER MENU - Mobile
   ============================================ */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary-light);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--primary-light);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: none;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
        gap: 0.4rem !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }
    
    .navbar-brand .material-symbols-outlined {
        font-size: 22px !important;
    }
    
    .hamburger-btn {
        display: flex !important;
        flex-shrink: 0 !important;
        width: 36px !important;
        height: 36px !important;
        order: 3 !important;
        position: relative !important;
        margin-left: auto !important;
    }
    
    .navbar-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: linear-gradient(180deg, var(--dark) 0%, rgba(15, 15, 35, 0.98) 100%) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 0 !important;
        gap: 0 !important;
        z-index: 1000 !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transform: translateX(100%) !important;
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1) !important;
        border-left: 1px solid rgba(99, 102, 241, 0.2) !important;
        display: flex !important;
    }
    
    .navbar-menu.active {
        transform: translateX(0) !important;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .mobile-menu-header span:first-child {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--white);
        background: var(--bg-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .close-menu-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .close-menu-btn:hover {
        background: rgba(239, 68, 68, 0.2);
        transform: rotate(90deg);
    }
    
    .close-menu-btn:active {
        transform: rotate(90deg) scale(0.95);
    }
    
    .close-menu-btn .material-symbols-outlined {
        color: var(--white);
        font-size: 24px;
        transition: color 0.3s ease;
    }
    
    .close-menu-btn:hover .material-symbols-outlined {
        color: #ef4444;
    }
    
    .navbar-menu .nav-item {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1rem;
        opacity: 0;
        transform: translateX(30px);
        animation: slideInMenuItem 0.4s ease forwards;
    }
    
    .navbar-menu.active .nav-item:nth-child(2) { animation-delay: 0.1s; }
    .navbar-menu.active .nav-item:nth-child(3) { animation-delay: 0.15s; }
    .navbar-menu.active .nav-item:nth-child(4) { animation-delay: 0.2s; }
    .navbar-menu.active .nav-item:nth-child(5) { animation-delay: 0.25s; }
    .navbar-menu.active .nav-item:nth-child(6) { animation-delay: 0.3s; }
    .navbar-menu.active .nav-item:nth-child(7) { animation-delay: 0.35s; }
    .navbar-menu.active .nav-item:nth-child(8) { animation-delay: 0.4s; }
    
    @keyframes slideInMenuItem {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .navbar-menu .nav-item:hover {
        background: rgba(99, 102, 241, 0.1);
        padding-left: 2rem;
    }
    
    .navbar-menu .nav-item.active {
        background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, transparent 100%);
        border-left: 3px solid var(--primary);
        padding-left: calc(1.5rem - 3px);
    }
    
    .navbar-menu .nav-item .material-symbols-outlined {
        font-size: 24px;
        margin-right: 1rem;
        transition: transform 0.3s ease;
    }
    
    .navbar-menu .nav-item:hover .material-symbols-outlined {
        transform: scale(1.1);
    }
    
    .navbar-menu .nav-item span:last-child {
        display: inline;
    }
}

.navbar-menu::-webkit-scrollbar {
    height: 4px;
}

.navbar-menu::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--gray-light);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-item .material-symbols-outlined {
    font-size: 20px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-item.active {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-content,
.profile-content,
.links-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-card,
.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before,
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-gradient);
}

.dashboard-card:hover,
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card h3,
.profile-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.dashboard-card h3 .material-symbols-outlined,
.profile-card h3 .material-symbols-outlined {
    color: var(--primary-light);
    font-size: 28px;
}

/* QR Card */
.qr-card {
    text-align: center;
}

.qr-container {
    display: inline-block;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    margin: 1rem 0;
    box-shadow: var(--shadow);
}

.qr-container canvas {
    display: block;
}

/* Status Card */
.status-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge.trial {
    background: rgba(251, 188, 4, 0.2);
    color: var(--warning);
}

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

.status-badge.paused,
.status-badge.expired {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.stat-item .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary);
}

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

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   PROFILE EDITING
   ============================================ */
.profile-header-section {
    margin-bottom: 2rem;
}

.profile-header-section h2 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cover-upload-area,
.avatar-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cover-preview {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.cover-preview:hover {
    border-color: var(--primary);
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 3px dashed rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.avatar-preview:hover {
    border-color: var(--primary);
}

/* Logo preview'lar için (yatay logolar düzgün görünsün) */
#provider-logo-preview,
#social-logo-preview,
#company-logo-preview {
    border-radius: var(--border-radius) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: rgba(255, 255, 255, 0.02);
}

/* Platform logo preview - wider for horizontal logos */
#platform-logo-preview {
    width: 100% !important;
    max-width: 300px !important;
    height: 100px !important;
    border-radius: var(--border-radius) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--glass-border);
    margin: 0 auto;
}

/* Pricing Product Preview */
.pricing-product-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-product-preview {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.pricing-product-preview:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.1);
}

.pricing-product-preview .material-symbols-outlined {
    font-size: 32px;
    opacity: 0.5;
}

.pricing-product-preview.has-image {
    border-style: solid;
}

.pricing-product-preview.has-image span {
    display: none;
}

/* ============================================
   LINKS MANAGEMENT
   ============================================ */
.links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.links-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
}

.link-card:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.link-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    flex-shrink: 0;
}

.link-card-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.link-card-info {
    flex: 1;
}

.link-card-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.link-card-info p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.link-card-actions {
    display: flex;
    gap: 0.5rem;
}

.link-card-actions button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-card-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.link-card-actions .btn-up:hover {
    background: var(--primary);
}

.link-card-actions .btn-down:hover {
    background: var(--primary);
}

.link-card-actions .btn-edit:hover {
    background: var(--secondary);
}

.link-card-actions .btn-delete:hover {
    background: var(--danger);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
#view-admin {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#view-admin > .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-input {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    width: 300px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.table-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(255, 255, 255, 0.05);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    font-weight: 600;
    color: var(--gray-light);
    font-size: 0.9rem;
    text-transform: uppercase;
}

td {
    color: var(--white);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions button {
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.table-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Providers Grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.provider-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.provider-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.provider-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.provider-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.provider-card .provider-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.provider-type.social {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.provider-type.bank {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.provider-type.crypto {
    background: rgba(251, 188, 4, 0.2);
    color: var(--warning);
}

/* ============================================
   PUBLIC PROFILE
   ============================================ */
.public-profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ⚡ Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.1) 40px, rgba(255,255,255,0.05) 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* ⚡ Fast fade in animation */
@keyframes fastFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.public-profile-container > * {
    animation: fastFadeIn 0.2s ease;
}

.public-cover {
    width: 100%;
    height: 200px;
    background: var(--bg-gradient);
    border-radius: var(--border-radius-lg);
    margin-bottom: -60px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    /* ⚡ GPU acceleration */
    transform: translateZ(0);
    will-change: background-image;
}

.public-header {
    text-align: center;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.public-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--white);
    margin: 0 auto 1rem;
    border: 4px solid var(--dark);
    box-shadow: var(--shadow);
    background-size: cover;
    background-position: center;
    /* ⚡ GPU acceleration */
    transform: translateZ(0);
    will-change: background-image;
}

.public-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.public-username {
    color: var(--primary-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.public-bio {
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Company Section - EN ÜSTTE, GOOGLE STİLİ */
.public-company-section {
    margin-bottom: 2rem;
    animation: slideInDown 0.4s ease; /* ⚡ Faster animation */
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px); /* ⚡ Shorter distance */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    /* ⚡ GPU acceleration */
    transform: translateZ(0);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
    opacity: 0.6;
}

.company-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.google-review-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* When animated class is added, use premium styles */
.google-review-section.google-promo-animated {
    background: linear-gradient(145deg, rgba(66, 133, 244, 0.18), rgba(52, 168, 83, 0.1)) !important;
    border: 2px solid rgba(66, 133, 244, 0.3) !important;
    border-radius: 24px !important;
    padding: 2.5rem 2rem !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 50px rgba(66, 133, 244, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    margin: 2rem 0 !important;
}

.google-review-section.google-promo-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.2) 0%, transparent 50%);
    animation: googleGlow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.google-review-section.google-promo-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
    z-index: 0;
}

.google-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.google-logo-letter {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Product Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.google-rating-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.google-rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.google-stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 24px;
    color: #FBBC05;
    filter: brightness(0.9);
}

.star.half {
    position: relative;
}

.star.half::after {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.2);
}

.star.empty {
    color: rgba(255, 255, 255, 0.2);
}

.google-review-cta {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: center;
}

.google-review-cta strong {
    color: var(--text-primary);
    font-weight: 600;
}

.btn-google-review {
    background: linear-gradient(135deg, #4285F4 0%, #357ae8 100%);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-google-review:hover {
    background: linear-gradient(135deg, #357ae8 0%, #2a5fc9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.35);
}

/* ============================================
   ANIMATED GOOGLE PROMO (Public Profile)
   ============================================ */

@keyframes googleGlow {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(10%, 10%); opacity: 1; }
}

.google-logo-animated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.google-logo-animated .g-letter {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Product Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: letterBounce 2s ease-in-out infinite;
    display: inline-block;
    text-shadow: 0 2px 10px currentColor;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.google-logo-animated .g-letter:nth-child(1) { animation-delay: 0s; }
.google-logo-animated .g-letter:nth-child(2) { animation-delay: 0.1s; }
.google-logo-animated .g-letter:nth-child(3) { animation-delay: 0.2s; }
.google-logo-animated .g-letter:nth-child(4) { animation-delay: 0.3s; }
.google-logo-animated .g-letter:nth-child(5) { animation-delay: 0.4s; }
.google-logo-animated .g-letter:nth-child(6) { animation-delay: 0.5s; }

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

.google-rating-animated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.google-rating-animated .rating-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1;
}

.google-stars-animated {
    display: flex;
    gap: 6px;
}

.google-stars-animated .star-animated {
    font-size: 2rem;
    color: #FBBC05;
    animation: starPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(251, 188, 5, 0.5));
}

.google-stars-animated .star-animated:nth-child(1) { animation-delay: 0s; }
.google-stars-animated .star-animated:nth-child(2) { animation-delay: 0.15s; }
.google-stars-animated .star-animated:nth-child(3) { animation-delay: 0.3s; }
.google-stars-animated .star-animated:nth-child(4) { animation-delay: 0.45s; }
.google-stars-animated .star-animated:nth-child(5) { animation-delay: 0.6s; }

@keyframes starPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 4px rgba(251, 188, 5, 0.4)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 4px 8px rgba(251, 188, 5, 0.6)); }
}

.google-promo-animated .google-review-cta {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.google-promo-animated .google-review-cta strong {
    color: var(--text-primary);
    font-weight: 700;
    background: linear-gradient(135deg, #4285F4, #34A853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Google Review Button */
.btn-google-review-animated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.125rem 2.5rem;
    background: linear-gradient(135deg, #4285F4, #34A853);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 30px rgba(66, 133, 244, 0.4),
        0 0 0 0 rgba(66, 133, 244, 0.4);
    animation: googleBtnPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes googleBtnPulse {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(66, 133, 244, 0.4),
            0 0 0 0 rgba(66, 133, 244, 0.4);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(66, 133, 244, 0.5),
            0 0 0 12px rgba(66, 133, 244, 0);
    }
}

.btn-google-review-animated .btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #34A853, #0F9D58);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50px;
}

.btn-google-review-animated:hover .btn-bg {
    opacity: 1;
}

.btn-google-review-animated .btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn-google-review-animated .btn-content .material-symbols-outlined {
    font-size: 24px;
    transition: transform 0.4s ease;
}

.btn-google-review-animated:hover .btn-content .material-symbols-outlined {
    transform: scale(1.2) rotate(-10deg);
}

.btn-google-review-animated .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-google-review-animated:hover .btn-shine {
    left: 100%;
}

.btn-google-review-animated:hover {
    transform: translateY(-5px) scale(1.05);
    animation: none;
    box-shadow: 
        0 20px 50px rgba(66, 133, 244, 0.5),
        0 0 30px rgba(52, 168, 83, 0.4);
}

.btn-google-review-animated:active {
    transform: translateY(-2px) scale(1.02);
}

/* Public Links */
.public-links, .public-info-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.public-info-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--gray-light);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.public-link-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; /* ⚡ Shorter transition */
    cursor: pointer;
    text-decoration: none;
    color: var(--white);
    /* ⚡ GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
}

.public-link-card:hover {
    transform: translateZ(0) scale(1.02); /* ⚡ Keep GPU layer */
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.public-link-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.25rem;
    overflow: hidden;
    /* ⚡ GPU acceleration for images */
    transform: translateZ(0);
}

.public-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ⚡ Lazy loading support */
    loading: lazy;
}

.public-link-icon .material-symbols-outlined {
    font-size: 48px;
    color: var(--white);
}

.public-link-info {
    flex: 1;
}

.public-link-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.public-link-info p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.public-link-description {
    font-size: 0.85rem;
    color: var(--gray-light);
    font-style: italic;
    margin-top: 0.25rem;
}

.public-link-card .material-symbols-outlined {
    color: var(--primary-light);
    font-size: 24px;
}

/* Public Footer */
.public-footer {
    text-align: center;
    padding: 2rem;
    color: var(--gray-light);
}

.public-footer strong {
    color: var(--primary-light);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--dark-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden; /* Dış scrollbar'ı engellemek için */
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-small {
    max-width: 400px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto; /* İçerik taşarsa scrollbar çıkarır */
    flex-grow: 1;
}

#crop-modal .modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================================
   CROP MODAL - YENİ TASARIM
   ============================================ */
#crop-modal .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    width: 700px;
    display: flex;
    flex-direction: column;
}

#crop-image-container {
    flex: 1;
    min-height: 300px;
    max-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
    position: relative;
    overflow: hidden;
}

#image-to-crop {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Cropper.js Stilleri */
.cropper-container {
    background: #0a0a0f !important;
    touch-action: none;
}

.cropper-bg {
    background-image: none !important;
    background: transparent !important;
}

.cropper-modal {
    background: rgba(0, 0, 0, 0.7) !important;
    opacity: 1 !important;
}

.cropper-view-box {
    outline: 2px solid var(--primary) !important;
    outline-color: #6366f1 !important;
}

.cropper-line {
    background-color: #6366f1 !important;
}

.cropper-point {
    background-color: #6366f1 !important;
    width: 12px !important;
    height: 12px !important;
    opacity: 1 !important;
}

.cropper-point.point-se {
    width: 16px !important;
    height: 16px !important;
}

.cropper-center {
    display: none !important;
}

.cropper-face {
    background-color: transparent !important;
}

/* Crop Toolbar */
.crop-toolbar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--dark-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.crop-toolbar button {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.crop-toolbar button:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}

.crop-toolbar button:active {
    transform: scale(0.95);
}

.crop-toolbar button .material-symbols-outlined {
    font-size: 22px;
}

.crop-toolbar .divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem;
}

/* Mobil için Crop Modal */
@media (max-width: 768px) {
    #crop-modal .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    #crop-image-container {
        min-height: 250px;
        max-height: 55vh;
    }
    
    .crop-toolbar {
        padding: 0.75rem;
        gap: 0.4rem;
    }
    
    .crop-toolbar button {
        width: 40px;
        height: 40px;
    }
    
    .cropper-point {
        width: 16px !important;
        height: 16px !important;
    }
    
    .cropper-point.point-se {
        width: 20px !important;
        height: 20px !important;
    }
}

.modal-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-menu {
        width: 100%;
        justify-content: space-around;
    }

    .nav-item span:not(.material-symbols-outlined) {
        display: none;
    }

    .nav-item {
        flex: 1;
        justify-content: center;
    }

    .dashboard-content,
    .profile-content,
    .links-content,
    .admin-content {
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
    }

    .links-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .table-container {
        overflow-x: scroll;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    #toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        min-width: auto;
    }

    .providers-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }
.visible { display: block; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}
/* ============================================
   Modal & Cropper Düzeltmeleri
   ============================================ */

/* Crop stilleri yukarıda tanımlı */
/* ============================================
   MODAL FORM YAPI DÜZELTMESİ
   ============================================ */
.modal-content > form {
    display: flex;
    flex-direction: column;
    /* Formun, başlık ve butonlar arasındaki tüm boşluğu doldurmasını sağlar */
    flex-grow: 1;
    /* İçeriğin (modal-body) düzgün kaydırılabilmesi için gereklidir */
    overflow: hidden;
}
/* ============================================
   LINK MODAL (PENCERE) DÜZENLEMESİ
   ============================================ */
#link-modal .modal-body {
    display: grid;
    /* Her elemanı kendi satırına yerleştirmek için tek sütunlu bir grid oluşturur */
    grid-template-columns: 1fr;
    /* Alanlar arasına boşluk ekleyerek daha okunaklı hale getirir */
    gap: 1rem;
}

/* "Görünür" checkbox'ının daha düzgün görünmesini sağlar */
#link-modal .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#link-modal .form-group input[type="checkbox"] {
    /* Checkbox'ın orantısız büyümesini engeller */
    width: auto; 
    height: auto;
}

/* ============================================
   SORTABLE / DRAG & DROP STYLES
   ============================================ */
.drag-handle {
    cursor: grab !important;
    user-select: none;
    transition: var(--transition);
}

.drag-handle:hover {
    color: var(--primary) !important;
}

.drag-handle:active {
    cursor: grabbing !important;
}

.sortable-ghost {
    opacity: 0.4;
    background: var(--primary);
    border-radius: var(--border-radius);
}

.sortable-drag {
    opacity: 1;
    background: var(--dark-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: rotate(2deg);
}

#dynamic-social-fields .form-group {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

#dynamic-social-fields .form-group:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}
/* ============================================
   DRAG DROP HINT ANIMATIONS
   ============================================ */
@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 12px 35px rgba(99, 102, 241, 0.6); }
}

#drag-drop-hint:hover {
    border-color: rgba(139, 92, 246, 0.8);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
}

.profile-data-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    transform: translateX(4px);
}

.profile-data-item .drag-handle:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #a78bfa !important;
}

.profile-data-item:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.4;
    background: rgba(99, 102, 241, 0.2) !important;
}

.sortable-drag {
    opacity: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SAVE REMINDER ANIMATIONS
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
}

@keyframes pulse-save {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
    }
}

#save-reminder button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ============================================
   ŞUBE YÖNETİMİ STİLLERİ - Branch Management
   ============================================ */

/* Şube Kartları */
.branch-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.branch-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
}

/* Şube Seçim Popup */
#branch-selection-popup .modal-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
}

.branch-select-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.branch-select-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.branch-select-item h4 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: var(--white);
}

.branch-select-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Şube Modal */
#branch-modal .modal-content {
    max-width: 500px;
}

#branch-modal .avatar-upload-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

#branch-logo-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.2);
}

#branch-logo-preview:not(:empty) {
    border-style: solid;
    border-color: rgba(99, 102, 241, 0.5);
}

/* Google Review Section - Şube Sayısı */
.google-review-section .branch-count {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mobil Uyumluluk */
@media (max-width: 480px) {
    .branch-card {
        flex-wrap: wrap;
    }
    
    .branch-card > div:last-child {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
    
    #branch-selection-popup .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .branch-select-item {
        padding: 0.875rem;
    }
    
    /* Public Profile Mobile Fixes */
    .public-profile-container {
        padding: 1rem 0.75rem;
        overflow-x: hidden;
    }
    
    .public-header {
        padding: 0 1rem;
    }
    
    .public-info-section {
        padding: 0 0.5rem;
        overflow: visible;
    }
    
    .public-info-section h3 {
        font-size: 0.9rem;
    }
    
    /* İletişim bilgileri mobilde tek sütun */
    #public-contact-section > div {
        grid-template-columns: 1fr !important;
    }
    
    .contact-item {
        grid-column: auto !important;
    }
    
    .public-link-card {
        padding: 1rem;
    }
    
    .public-link-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .public-link-info h4 {
        font-size: 0.9rem;
    }
    
    .public-link-info p {
        font-size: 0.8rem;
        word-break: break-word;
    }
    
    /* Social/Bank sections */
    .social-section, .bank-section, .crypto-section {
        width: 100%;
        overflow: visible;
    }
    
    .bank-card, .crypto-card {
        margin: 0 0 0.75rem 0;
        padding: 0.875rem;
    }
    
    .bank-card div[style*="font-family:monospace"],
    .crypto-card div[style*="font-family:monospace"] {
        font-size: 10px !important;
    }
}
