/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary:        #7C3AED;
    --primary-dark:   #6D28D9;
    --primary-light:  #EDE9FE;
    --accent:         #EC4899;
    --accent-light:   #FCE7F3;
    --gradient:       linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    --success:        #10B981;
    --success-light:  #D1FAE5;
    --danger:         #EF4444;
    --danger-light:   #FEE2E2;
    --warning:        #F59E0B;
    --warning-light:  #FEF3C7;
    --bg:             #F8F7FF;
    --card:           #FFFFFF;
    --text:           #1E1B4B;
    --muted:          #6B7280;
    --border:         #E5E7EB;
    --shadow-sm:      0 1px 4px rgba(0,0,0,0.07);
    --shadow:         0 4px 18px rgba(124,58,237,0.09);
    --shadow-lg:      0 12px 40px rgba(124,58,237,0.14);
    --radius:         16px;
    --radius-sm:      10px;
    --radius-lg:      24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
    position: fixed;
    top: 78px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 270px;
    max-width: 360px;
    pointer-events: all;
    animation: toastIn 0.35s cubic-bezier(.34,1.56,.64,1);
    border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-msg  { font-size: 0.85rem; font-weight: 500; flex: 1; }
.toast-close {
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: 1rem; padding: 0; line-height: 1;
}

@keyframes toastIn  { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; }   to { transform: translateX(110%); opacity: 0; } }

/* ============================================
   NAVBAR
   ============================================ */
nav {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-icon { font-size: 1.4rem; }
.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: 50px;
}
.nav-btn {
    background: none; border: none;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}
.nav-btn:hover { color: var(--primary); }
.nav-btn.active {
    background: white;
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.publish-btn {
    background: var(--gradient);
    color: white; border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.22s;
    box-shadow: 0 4px 14px rgba(124,58,237,0.28);
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}
.publish-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(124,58,237,0.38); }
.publish-btn:active { transform: translateY(0); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    background: var(--gradient);
    padding: 72px 24px 60px;
    overflow: hidden;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}
.shape-1 { width: 400px; height: 400px; top: -120px; right: -100px; }
.shape-2 { width: 250px; height: 250px; bottom: -80px; left: 5%; }
.shape-3 { width: 160px; height: 160px; top: 30%; right: 20%; }

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.18);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-hl {
    position: relative;
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.38);
    text-underline-offset: 5px;
}

.hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 32px;
    line-height: 1.75;
    max-width: 540px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-btn-primary {
    background: white; color: var(--primary);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700; font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.14);
    font-family: 'Poppins', sans-serif;
}
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }

.hero-btn-ghost {
    background: rgba(255,255,255,0.18);
    color: white;
    border: 2px solid rgba(255,255,255,0.38);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
    font-family: 'Poppins', sans-serif;
}
.hero-btn-ghost:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.6); }

.hero-stats-box {
    display: flex;
    align-items: center;
    gap: 32px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 28px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.28);
    flex-shrink: 0;
}
.hero-stat { text-align: center; }
.hero-stat-val {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    transition: all 0.4s;
}
.hero-stat-lbl {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.72);
    font-weight: 500;
    margin-top: 5px;
}
.hero-divider { width: 1px; height: 56px; background: rgba(255,255,255,0.28); }

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 24px 60px;
}

.view-section { display: none; }
.view-section.active { display: block; }

.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 1.7rem; font-weight: 700; color: var(--text); }
.section-head p  { color: var(--muted); margin-top: 6px; font-size: 0.93rem; }

/* ============================================
   GRID
   ============================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}
.empty-icon  { font-size: 3.5rem; opacity: 0.35; margin-bottom: 16px; }
.empty-title { font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-text  { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.empty-btn {
    background: var(--gradient); color: white; border: none;
    padding: 12px 26px; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem; cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 14px rgba(124,58,237,0.28);
    transition: all 0.2s;
}
.empty-btn:hover { transform: translateY(-2px); }

/* ============================================
   SURVEY CARD
   ============================================ */
.card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.04);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Card preview header (QR area) */
.card-preview {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.card-preview.t-purple { background: linear-gradient(135deg, #EDE9FE, #F5F3FF); }
.card-preview.t-pink   { background: linear-gradient(135deg, #FCE7F3, #FDF2F8); }
.card-preview.t-blue   { background: linear-gradient(135deg, #DBEAFE, #EFF6FF); }
.card-preview.t-green  { background: linear-gradient(135deg, #D1FAE5, #ECFDF5); }
.card-preview.t-orange { background: linear-gradient(135deg, #FEF3C7, #FFFBEB); }

.qr-code {
    width: 82px; height: 82px;
    border-radius: 10px;
    border: 3px solid white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
    background: white;
    object-fit: contain;
    display: block;
}

.preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.domain-pill {
    display: inline-block;
    background: white;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
}

.preview-title-text {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.preview-url-text {
    font-size: 0.7rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card body */
.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.card-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Badges */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.badge-anon  { background: var(--primary-light); color: var(--primary); }
.badge-named { background: #FEF3C7; color: #92400E; }
.badge-mine  { background: var(--success-light); color: #065F46; }

.card-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--muted);
}

/* Stats area */
.card-stats {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.79rem;
}
.stat-lbl  { color: var(--muted); }
.stat-val  { font-weight: 600; color: var(--text); }
.stat-red  { color: var(--danger); font-weight: 600; }

.progress-wrap {
    display: flex; align-items: center; gap: 10px;
}
.progress-bar {
    flex: 1; height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.6s ease;
}
.progress-pct {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* Go button */
.card-footer { margin-top: auto; }

.go-btn {
    width: 100%;
    background: var(--gradient); color: white; border: none;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.22s;
    font-family: 'Poppins', sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.go-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(124,58,237,0.32); }

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed; inset: 0;
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal.show { display: flex; }

.modal-overlay {
    position: absolute; inset: 0;
    background: rgba(15,10,40,0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%; max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative; z-index: 1;
    box-shadow: 0 24px 70px rgba(0,0,0,0.22);
    animation: modalPop 0.32s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalPop {
    from { transform: scale(0.82) translateY(24px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.modal-head {
    padding: 28px 28px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.modal-head h2 {
    font-size: 1.35rem; font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.modal-head p { font-size: 0.83rem; color: var(--muted); }

.close-btn {
    background: var(--bg); border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer; font-size: 0.9rem;
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.18s; flex-shrink: 0;
    margin-top: 2px;
}
.close-btn:hover { background: var(--danger-light); color: var(--danger); }

.modal-form {
    padding: 22px 28px 28px;
    display: flex; flex-direction: column; gap: 16px;
}

/* ---- Form elements ---- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 0.84rem; font-weight: 600; color: var(--text);
}
.req { color: var(--accent); margin-left: 2px; }

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="number"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem; font-family: 'Poppins', sans-serif;
    color: var(--text); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

/* URL status */
.url-status {
    font-size: 0.8rem; font-weight: 500;
    padding: 7px 13px; border-radius: 7px;
}
.url-status.ok   { background: var(--success-light); color: #065F46; }
.url-status.warn { background: var(--warning-light); color: #78350F; }
.url-status.err  { background: var(--danger-light);  color: #991B1B; }

/* QR preview in form */
.qr-preview-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1.5px dashed var(--border);
    font-size: 0.75rem; color: var(--muted); font-weight: 500;
}
.qr-preview-wrap img {
    width: 96px; height: 96px;
    border-radius: 8px;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

/* Toggle switch */
.toggle-row {
    display: flex !important; flex-direction: row !important;
    align-items: center; justify-content: space-between;
    padding: 13px 15px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: pointer; gap: 14px;
}
.toggle-info { display: flex; flex-direction: column; gap: 2px; }
.toggle-title { font-size: 0.84rem; font-weight: 600; color: var(--text); }
.toggle-desc  { font-size: 0.76rem; color: var(--muted); font-weight: 400; }
.toggle-wrap  { position: relative; flex-shrink: 0; }
.toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
    width: 46px; height: 25px;
    background: var(--border);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.28s;
    position: relative; display: block;
}
.toggle-input:checked + .toggle-track { background: var(--gradient); background-size: 200%; }
.toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 19px; height: 19px;
    background: white; border-radius: 50%;
    transition: left 0.28s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}
.toggle-input:checked + .toggle-track .toggle-thumb { left: calc(100% - 22px); }

/* Security box */
.security-box {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
}
.security-box.checking { background: var(--primary-light); color: var(--primary); }
.security-box.safe     { background: var(--success-light); color: #065F46; }
.security-box.unsafe   { background: var(--danger-light);  color: #991B1B; }

/* Spinner */
.spinner {
    width: 16px; height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient); color: white; border: none;
    border-radius: var(--radius-sm);
    font-size: 0.97rem; font-weight: 600; cursor: pointer;
    transition: all 0.22s;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(124,58,237,0.4); }
.submit-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions  { justify-content: center; }
    .hero p        { margin-left: auto; margin-right: auto; }
    .hero-stats-box { justify-content: center; }
}

@media (max-width: 720px) {
    .nav-inner { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
    .nav-center { order: 3; width: 100%; justify-content: center; }
    .nav-right  { order: 2; }

    .hero { padding: 44px 20px 40px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-stats-box { width: 100%; padding: 20px 28px; }
    .hero-stat-val { font-size: 2.2rem; }

    .container { padding: 28px 16px 48px; }
    .grid { grid-template-columns: 1fr; gap: 16px; }

    .form-row { grid-template-columns: 1fr; gap: 16px; }
    .modal-box { border-radius: var(--radius); max-height: 94vh; }
    .modal-form { padding: 18px 18px 22px; }
    .modal-head { padding: 18px 18px 0; }
}

@media (max-width: 400px) {
    .logo-text { font-size: 1.15rem; }
    .hero h1   { font-size: 1.45rem; }
    .hero-btn-primary, .hero-btn-ghost { font-size: 0.87rem; padding: 12px 20px; }
}

/* ============================================
   SIRALAMA ÇUBUĞU
   ============================================ */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px 18px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.sort-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sort-btn {
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--muted);
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.sort-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.sort-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(124,58,237,0.25);
}

.shuffle-timer {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: var(--bg);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
}
.shuffle-timer strong {
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

/* ============================================
   DIŞARIDAN GÖR
   ============================================ */
.outside-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--primary-light);
    border: 1.5px solid rgba(124,58,237,0.2);
    border-radius: var(--radius);
    margin-bottom: 28px;
}
.outside-bar-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.outside-bar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}
.outside-bar-desc {
    font-size: 0.78rem;
    color: var(--primary-dark);
    opacity: 0.75;
}
.outside-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(124,58,237,0.25);
}
.outside-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(124,58,237,0.35); }
.outside-btn.active {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

/* Dışarıdan görünüm modunda kendi anketlerini vurgula */
.card.is-mine-highlight {
    box-shadow: 0 0 0 3px var(--primary), var(--shadow-lg);
}
.mine-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    padding: 6px;
    background: var(--primary-light);
    border-top: 1px solid rgba(124,58,237,0.15);
    letter-spacing: 0.3px;
}

/* Responsive sort bar */
@media (max-width: 720px) {
    .sort-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .sort-btns { display: none !important; }
    .sort-select { display: block !important; }
    .shuffle-timer { justify-content: center; align-self: stretch; }
    .outside-bar { flex-direction: column; align-items: flex-start; }
    .outside-btn { align-self: flex-end; }
}

/* ============================================
   NAVBAR — AUTH ALANI (DESKTOP)
   ============================================ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.login-nav-btn {
    background: none;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.login-nav-btn:hover { background: var(--primary-light); }

/* User dropdown */
.user-dropdown-wrap { position: relative; }

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}
.user-dropdown-btn:hover { border-color: var(--primary); background: var(--primary-light); }

.nav-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nav-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar-initials { color: white; font-size: 0.7rem; font-weight: 700; }

.nav-username {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow { font-size: 0.7rem; color: var(--muted); }

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    overflow: hidden;
    display: none;
    z-index: 500;
    animation: modalPop 0.2s ease;
}
.user-dropdown-menu.open { display: block; }

.user-dropdown-menu button {
    display: block;
    width: 100%;
    padding: 11px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.15s;
}
.user-dropdown-menu button:hover { background: var(--bg); }
.user-dropdown-menu .dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-dropdown-menu .dropdown-logout { color: var(--danger) !important; }
.user-dropdown-menu .dropdown-logout:hover { background: var(--danger-light) !important; }

/* ============================================
   MOBİL NAVBAR
   ============================================ */
@media (max-width: 600px) {
    .nav-inner {
        flex-wrap: wrap;
        padding: 10px 14px;
        gap: 8px;
    }
    .nav-center {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .nav-right {
        order: 2;
        margin-left: 0;
    }
    .publish-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .login-nav-btn {
        padding: 7px 14px;
        font-size: 0.82rem;
    }
    .nav-username { display: none; }
    .user-dropdown-btn { padding: 5px 10px 5px 5px; }
}

/* ============================================
   SORT SELECT (MOBİL)
   ============================================ */
.sort-select {
    display: none;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: white;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.sort-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-modal-box { max-width: 420px !important; }
.auth-modal-head {
    padding: 22px 24px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.auth-tabs {
    display: flex; background: var(--bg); border-radius: 50px; padding: 4px; gap: 4px;
}
.auth-tab {
    background: none; border: none; padding: 8px 20px; border-radius: 50px;
    font-size: 0.87rem; font-weight: 500; color: var(--muted); cursor: pointer;
    transition: all 0.2s; font-family: 'Poppins', sans-serif; white-space: nowrap;
}
.auth-tab.active { background: white; color: var(--primary); font-weight: 700; box-shadow: var(--shadow-sm); }
.auth-modal-body { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.google-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px 16px; background: white; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; color: var(--text);
    text-decoration: none; cursor: pointer; transition: all 0.2s; font-family: 'Poppins', sans-serif;
    box-shadow: var(--shadow-sm);
}
.google-btn:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(124,58,237,0.12); }
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    color: var(--muted); font-size: 0.78rem; font-weight: 500;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.9rem; font-family: 'Poppins', sans-serif;
    color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s; background: white;
}
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.auth-switch { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.auth-switch button {
    background: none; border: none; color: var(--primary); font-weight: 700; cursor: pointer;
    font-size: 0.8rem; font-family: 'Poppins', sans-serif; padding: 0;
    text-decoration: underline; text-underline-offset: 2px;
}

/* ============================================
   PROFİL MODAL
   ============================================ */
.profile-modal-box { max-width: 440px !important; }
.profile-modal-body { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 24px; }

.avatar-section { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.avatar-circle {
    width: 96px; height: 96px; border-radius: 50%;
    background: var(--gradient); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 16px rgba(124,58,237,0.25);
    transition: transform 0.2s;
}
.avatar-circle:hover { transform: scale(1.05); }
.avatar-circle:hover .avatar-overlay { opacity: 1; }
#avatarInitials { color: white; font-size: 1.8rem; font-weight: 800; }
#avatarImg { width: 100%; height: 100%; object-fit: cover; }
.avatar-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; opacity: 0; transition: opacity 0.2s;
}
.avatar-actions { display: flex; gap: 8px; }
.avatar-upload-btn {
    background: var(--gradient); color: white; border: none;
    padding: 8px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; font-family: 'Poppins', sans-serif; transition: all 0.2s;
}
.avatar-upload-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }
.avatar-remove-btn {
    background: none; border: 1.5px solid var(--border); color: var(--muted);
    padding: 7px 14px; border-radius: 50px; font-size: 0.82rem; font-weight: 500;
    cursor: pointer; font-family: 'Poppins', sans-serif; transition: all 0.2s;
}
.avatar-remove-btn:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-light); }
.avatar-hint { font-size: 0.73rem; color: var(--muted); }
.profile-form { display: flex; flex-direction: column; gap: 14px; }
.profile-form input[type="text"],
.profile-form input[type="email"] {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.9rem; font-family: 'Poppins', sans-serif;
    color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s; background: white;
}
.profile-form input:focus:not(:disabled) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.profile-form input:disabled { background: var(--bg); cursor: not-allowed; color: var(--muted); }

/* ============================================
   KART — DÜZENLE / SİL
   ============================================ */
.card-actions {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
}
.card-action-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.18s;
    border: 1.5px solid var(--border);
}
.edit-btn {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}
.edit-btn:hover { background: var(--primary-light); }
.delete-btn {
    background: white;
    color: var(--danger);
    border-color: var(--danger);
}
.delete-btn:hover { background: var(--danger-light); }

/* ============================================
   MOBİL GENEL İYİLEŞTİRMELER
   ============================================ */
@media (max-width: 480px) {
    .auth-modal-body  { padding: 16px 18px 22px; }
    .auth-modal-head  { padding: 18px 18px 0; }
    .profile-modal-body { padding: 16px 18px 22px; }
    .hero { padding: 36px 16px 32px; }
    .hero h1 { font-size: 1.5rem; }
    .hero p  { font-size: 0.9rem; }
    .hero-stats-box { padding: 16px 20px; }
    .hero-stat-val  { font-size: 2rem; }
    .container { padding: 20px 12px 40px; }
    .section-head h2 { font-size: 1.4rem; }
    .card-actions { padding: 0 14px 14px; }
}

/* ============================================
   NAVBAR AUTH
   ============================================ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.login-nav-btn {
    background: none;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.login-nav-btn:hover {
    background: var(--primary-light);
}

.user-nav-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-nav-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.logout-btn {
    background: none;
    border: 1.5px solid var(--border);
    color: var(--muted);
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.logout-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light);
}

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-modal-box {
    max-width: 420px !important;
}

.auth-modal-head {
    padding: 22px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-tabs {
    display: flex;
    background: var(--bg);
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
}

.auth-tab {
    background: none;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.auth-tab.active {
    background: white;
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.auth-modal-body {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Google Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    box-shadow: var(--shadow-sm);
}
.google-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(124,58,237,0.12);
    background: #fafafa;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Auth Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}
.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.auth-switch {
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
}
.auth-switch button {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 480px) {
    .auth-modal-body { padding: 16px 18px 22px; }
    .auth-modal-head { padding: 18px 18px 0; }
    .user-nav-name   { display: none; }
}
