/* -- Base -- */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.theme-body {
    background: var(--bg-base, #121212);
    color: var(--text-primary, #e0e0e0);
    font-family: var(--font-family, Inter, "Segoe UI", Roboto, sans-serif);
    font-size: var(--font-size, 13px);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    color-scheme: dark;
}

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

:root {
    --z-tabbar: 90;
    --z-header: 100;
    --z-nav-backdrop: 105;
    --z-nav-drawer: 110;
    --z-sidebar-overlay: 120;
    --z-sidebar: 130;
    --z-panel-modal: 600;
    --z-modal: 500;
    --z-modal-confirm: 520;
    --z-cookie: 9990;
}

[x-cloak] { display: none !important; }

@media (max-width: 639px) {
    .hide-xs { display: none !important; }
    .panel-topbar { padding: 0 0.75rem; }
}

@media (max-width: 767px) {
    .hide-sm { display: none !important; }
}

@media (min-width: 1024px) {
    .show-mobile-only { display: none !important; }
}

@media (max-width: 1023px) {
    .show-mobile-only { display: flex; }
    .show-mobile-only.block { display: block; }
    .hide-mobile { display: none !important; }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border, #2a3040);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-input, #404040);
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5625rem 1.125rem;
    border-radius: calc(var(--radius, 10px) - 2px);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--accent, #7c6af7);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 106, 247, 0.25);
}

.btn-primary:active {
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.125rem;
    border-radius: calc(var(--radius, 10px) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-elevated, #1e1e1e);
    color: var(--text-primary, #e0e0e0);
    border: 1px solid var(--border, #333333);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--bg-hover, #252525);
    border-color: var(--border-input-hover, #b8beca);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.125rem;
    border-radius: calc(var(--radius, 10px) - 2px);
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger, #f87171);
    border: 1px solid rgba(248, 113, 113, 0.25);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.2);
}

.btn-sm { padding: 0.3125rem 0.75rem; font-size: 0.8125rem; }

/* ==========================================================================
   FORMS - Dark modern controls (panel + admin)
   ========================================================================== */

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary, #9e9e9e);
    margin-bottom: 0.375rem;
}

/* Metin alanları, select, textarea */
.form-input,
.form-select,
.form-textarea,
.theme-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="file"]):not([type="hidden"]),
.theme-body textarea,
.theme-body select {
    width: 100%;
    background-color: var(--bg-input, #1e1e1e) !important;
    background-image: none;
    border: 1px solid var(--border-input, #404040);
    border-radius: calc(var(--radius, 10px) - 2px);
    padding: 0.5625rem 0.75rem;
    color: var(--text-primary, #e0e0e0) !important;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.45;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

.form-input:not(.deposit-amount-input),
.form-select,
.theme-body select {
    min-height: 2.625rem;
}

/* Select - özel ok ikonu */
.form-select,
.theme-body select {
    padding-right: 2.25rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239e9e9e' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 12px !important;
    background-color: var(--bg-input, #1e1e1e) !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.theme-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
.theme-body textarea:focus,
.theme-body select:focus {
    outline: none;
    border-color: var(--accent, #7c6af7);
    background-color: var(--bg-input-focus, #242424) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #7c6af7) 18%, transparent);
}

.form-input:hover:not(:disabled):not([readonly]),
.form-select:hover:not(:disabled),
.form-textarea:hover:not(:disabled):not([readonly]),
.theme-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="reset"]):hover:not(:disabled):not([readonly]),
.theme-body textarea:hover:not(:disabled):not([readonly]),
.theme-body select:hover:not(:disabled) {
    border-color: var(--border-input-hover, #4a4a4a);
}

.form-input::placeholder,
.form-textarea::placeholder,
.theme-body input::placeholder,
.theme-body textarea::placeholder {
    color: var(--text-muted, #757575);
    opacity: 1;
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled,
.theme-body input:disabled,
.theme-body textarea:disabled,
.theme-body select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background-color: var(--bg-elevated, #1a1a1a) !important;
    color: var(--text-muted, #757575) !important;
}

.form-input[readonly],
.theme-body input[readonly] {
    background-color: var(--bg-elevated, #1a1a1a) !important;
    cursor: default;
}

/* Number spinner */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.65;
    filter: invert(0.85);
}

/* Search clear button */
input[type="search"]::-webkit-search-cancel-button {
    filter: invert(0.85);
}

/* Checkbox & Radio - özel dark stil */
.form-check,
.theme-body label:has(> input[type="checkbox"]),
.theme-body label:has(> input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary, #9e9e9e);
    font-size: 0.875rem;
    user-select: none;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"],
.theme-body input[type="checkbox"],
.theme-body input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--bg-input, #1e1e1e) !important;
    border: 1.5px solid var(--border-input, #404040);
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
    vertical-align: middle;
}

.theme-body input[type="checkbox"],
.form-check input[type="checkbox"] {
    border-radius: 0.3rem;
}

.theme-body input[type="radio"],
.form-check input[type="radio"] {
    border-radius: 50%;
}

.theme-body input[type="checkbox"]:hover,
.theme-body input[type="radio"]:hover,
.form-check input:hover {
    border-color: var(--border-input-hover, #4a4a4a);
}

.theme-body input[type="checkbox"]:checked,
.form-check input[type="checkbox"]:checked {
    background-color: var(--accent, #7c6af7) !important;
    border-color: var(--accent, #7c6af7);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M10.2 2.8 4.5 8.5 1.8 5.8l1.1-1.1 1.6 1.6 4.6-4.6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

.theme-body input[type="radio"]:checked,
.form-check input[type="radio"]:checked {
    background-color: var(--bg-input, #1e1e1e) !important;
    border-color: var(--accent, #7c6af7);
    border-width: 2px;
    box-shadow: inset 0 0 0 3px var(--accent, #7c6af7);
}

.theme-body input[type="checkbox"]:focus-visible,
.theme-body input[type="radio"]:focus-visible,
.form-check input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #7c6af7) 22%, transparent);
}

/* Range */
.theme-body input[type="range"] {
    width: 100%;
    height: 0.375rem;
    background: var(--bg-elevated, #1a1a1a);
    border-radius: 999px;
    accent-color: var(--accent, #7c6af7);
}

/* File input */
.panel-file-input,
.theme-body input[type="file"] {
    width: 100%;
    font-size: 0.8125rem;
    color: var(--text-secondary, #9e9e9e);
    background: transparent !important;
    border: 1px dashed var(--border-input, #404040);
    border-radius: calc(var(--radius, 10px) - 2px);
    padding: 0.5rem 0.75rem;
}

.panel-file-input::file-selector-button,
.theme-body input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    background: var(--bg-elevated, #1e1e1e) !important;
    color: var(--text-primary, #e0e0e0) !important;
    border: 1px solid var(--border, #333);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.panel-file-input::file-selector-button:hover,
.theme-body input[type="file"]::file-selector-button:hover {
    background: var(--bg-hover, #252525) !important;
    border-color: var(--border-input-hover, #4a4a4a);
}

/* Select option listesi */
.theme-body select option,
.theme-body select optgroup {
    background-color: var(--bg-surface, #1a1a1a);
    color: var(--text-primary, #e0e0e0);
}

/* Autofill */
.theme-body input:-webkit-autofill,
.theme-body input:-webkit-autofill:hover,
.theme-body input:-webkit-autofill:focus,
.theme-body textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--text-primary, #e0e0e0) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--bg-input, #1e1e1e) inset !important;
    box-shadow: 0 0 0 1000px var(--bg-input, #1e1e1e) inset !important;
    caret-color: var(--text-primary, #e0e0e0);
    transition: background-color 9999s ease-out 0s;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 0;
    min-width: 0;
}

.form-row + .form-row,
.form-stack > .form-row:not(:last-child),
.form-stack > hr + .form-row {
    margin-top: 0;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-textarea {
    display: block;
    width: 100%;
    min-height: 5.5rem;
    resize: vertical;
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted, #757575);
    margin: 0;
    line-height: 1.45;
}

/* Light tema override */
html[data-theme="light"] .theme-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="hidden"]),
html[data-theme="light"] .theme-body textarea,
html[data-theme="light"] .theme-body select,
html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select,
html[data-theme="light"] .form-textarea {
    background-color: var(--bg-input, #ffffff) !important;
    color: var(--text-primary, #1a1f2e) !important;
    border-color: var(--border-input, #d5d9e3);
}

html[data-theme="light"] .theme-body input[type="checkbox"],
html[data-theme="light"] .theme-body input[type="radio"] {
    background-color: var(--bg-input, #ffffff) !important;
}

/* ==========================================================================
   BADGES / CHIPS
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.5625rem;
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-accent  { background: rgba(124,106,247,.12); color: var(--accent, #7c6af7); }
.badge-success { background: rgba(74,222,128,.12);  color: var(--success, #4ade80); }
.badge-danger  { background: rgba(248,113,113,.12); color: var(--danger, #f87171); }
.badge-warning { background: rgba(251,191,36,.12);  color: var(--warning, #fbbf24); }
.badge-neutral { background: var(--bg-elevated);    color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* Cookie consent bar — glassmorphism, fixed bottom */

.ozw-cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: var(--z-cookie, 9990);
    padding: 0 1rem 1rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(calc(100% + 1rem));
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s ease;
}

.ozw-cookie-consent.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.ozw-cookie-consent.is-closing {
    opacity: 0;
    transform: translateY(calc(100% + 0.5rem));
    pointer-events: none;
}

.ozw-cookie-consent__inner {
    max-width: 56rem;
    margin: 0 auto;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 14, 24, 0.72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(99, 102, 241, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.ozw-cookie-consent__bar,
.ozw-cookie-consent__customize {
    padding: 1.1rem 1.25rem;
}

.ozw-cookie-consent__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
}

.ozw-cookie-consent__main {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    flex: 1 1 18rem;
    min-width: 0;
}

.ozw-cookie-consent__icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(129, 140, 248, 0.28);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
}

.ozw-cookie-consent__title {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #eef0f4;
}

.ozw-cookie-consent__text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #94a3b8;
    max-width: 42rem;
}

.ozw-cookie-consent__legal {
    margin: 0.45rem 0 0;
    font-size: 0.6875rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.ozw-cookie-consent__legal a {
    color: #a5b4fc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ozw-cookie-consent__legal a:hover {
    color: #c7d2fe;
}

.ozw-cookie-consent__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.ozw-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem 0.55rem;
    flex-shrink: 0;
}

.ozw-cookie-consent__btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 0.55rem;
    transition:
        transform 0.15s ease,
        box-shadow 0.25s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.ozw-cookie-consent__btn:active {
    transform: scale(0.97);
}

.ozw-cookie-consent__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    box-shadow:
        0 4px 18px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ozw-cookie-consent__btn--primary:hover {
    box-shadow:
        0 6px 28px rgba(99, 102, 241, 0.5),
        0 0 20px rgba(129, 140, 248, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ozw-cookie-consent__btn--ghost {
    color: #cbd5e1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.ozw-cookie-consent__btn--ghost:hover {
    color: #eef0f4;
    border-color: rgba(129, 140, 248, 0.4);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.12);
}

.ozw-cookie-consent__link {
    appearance: none;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    padding: 0.45rem 0.35rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.ozw-cookie-consent__link:hover {
    color: #c7d2fe;
}

/* Customize panel */
.ozw-cookie-consent__customize {
    animation: ozw-cookie-fade-in 0.3s ease;
}

.ozw-cookie-consent__customize[hidden] {
    display: none !important;
}

.ozw-cookie-consent__customize-title {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #eef0f4;
}

.ozw-cookie-consent__customize-desc {
    margin: 0 0 0.85rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #94a3b8;
}

.ozw-cookie-consent__categories {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ozw-cookie-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ozw-cookie-consent__category-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ozw-cookie-consent__category-info strong {
    font-size: 0.8125rem;
    color: #eef0f4;
}

.ozw-cookie-consent__category-info span {
    font-size: 0.6875rem;
    color: #64748b;
    line-height: 1.4;
}

.ozw-cookie-consent__always {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
}

.ozw-cookie-consent__toggle {
    position: relative;
    flex-shrink: 0;
    width: 2.5rem;
    height: 1.35rem;
    cursor: pointer;
}

.ozw-cookie-consent__toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ozw-cookie-consent__toggle-ui {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.ozw-cookie-consent__toggle-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ozw-cookie-consent__toggle input:checked + .ozw-cookie-consent__toggle-ui {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.45);
}

.ozw-cookie-consent__toggle input:checked + .ozw-cookie-consent__toggle-ui::after {
    transform: translateX(1.1rem);
}

.ozw-cookie-consent__toggle input:focus-visible + .ozw-cookie-consent__toggle-ui {
    outline: 2px solid rgba(129, 140, 248, 0.6);
    outline-offset: 2px;
}

.ozw-cookie-consent__customize-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

body.ozw-cookie-open {
    --ozw-cookie-inset: 0px;
}

@media (min-width: 769px) {
    .ozw-cookie-consent__actions,
    .ozw-cookie-consent__customize-actions {
        flex-direction: row-reverse;
    }
}

@media (max-width: 768px) {
    body.ozw-cookie-open .web-main,
    body.ozw-cookie-open .ozw-auth-wrap {
        padding-bottom: var(--ozw-cookie-inset, 0px);
        transition: padding-bottom 0.35s ease;
    }

    .ozw-cookie-consent {
        padding: 0;
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    .ozw-cookie-consent__inner {
        max-width: none;
        border-radius: 1.25rem 1.25rem 0 0;
        border-bottom: none;
        max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 0.5rem));
        display: flex;
        flex-direction: column;
    }

    .ozw-cookie-consent__bar,
    .ozw-cookie-consent__customize {
        padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ozw-cookie-consent__bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
    }

    .ozw-cookie-consent__main {
        flex: none;
        gap: 0.75rem;
    }

    .ozw-cookie-consent__icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.0625rem;
    }

    .ozw-cookie-consent__title {
        font-size: 0.875rem;
    }

    .ozw-cookie-consent__text {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .ozw-cookie-consent__legal {
        font-size: 0.75rem;
        gap: 0.4rem 0.55rem;
    }

    .ozw-cookie-consent__actions,
    .ozw-cookie-consent__customize-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .ozw-cookie-consent__btn {
        width: 100%;
        min-height: 2.75rem;
        padding: 0.7rem 1rem;
        font-size: 0.875rem;
        border-radius: 0.75rem;
        justify-content: center;
    }

    .ozw-cookie-consent__link {
        width: 100%;
        min-height: 2.75rem;
        padding: 0.65rem 0.5rem;
        font-size: 0.8125rem;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ozw-cookie-consent__category {
        padding: 0.75rem 0.85rem;
        border-radius: 0.75rem;
        align-items: flex-start;
    }

    .ozw-cookie-consent__category-info strong {
        font-size: 0.875rem;
    }

    .ozw-cookie-consent__category-info span {
        font-size: 0.75rem;
    }

    .ozw-cookie-consent__toggle {
        width: 2.875rem;
        height: 1.625rem;
        margin-top: 0.125rem;
    }

    .ozw-cookie-consent__toggle-ui::after {
        width: 1.2rem;
        height: 1.2rem;
    }

    .ozw-cookie-consent__toggle input:checked + .ozw-cookie-consent__toggle-ui::after {
        transform: translateX(1.25rem);
    }

    .ozw-cookie-consent__customize-title {
        font-size: 1rem;
    }

    .ozw-cookie-consent__customize-desc {
        font-size: 0.8125rem;
    }
}

@keyframes ozw-cookie-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .ozw-cookie-consent__bar,
    .ozw-cookie-consent__customize {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .ozw-cookie-consent__main {
        flex-direction: column;
        align-items: flex-start;
    }

    .ozw-cookie-consent__badge {
        width: 100%;
        justify-content: center;
        margin-top: 0.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ozw-cookie-consent,
    .ozw-cookie-consent__btn,
    .ozw-cookie-consent__customize {
        transition: none;
        animation: none;
    }
}

/* Ozwor dekoratif arka plan — auth/public bundle (home.css olmadan kullanılır) */
.ozw-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.ozw-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: ozw-orb-float 18s ease-in-out infinite;
}

.ozw-bg-orb--1 {
    width: 42vw;
    height: 42vw;
    top: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 70%);
}

.ozw-bg-orb--2 {
    width: 36vw;
    height: 36vw;
    top: 30%;
    right: -10%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
    animation-delay: -6s;
}

.ozw-bg-orb--3 {
    width: 28vw;
    height: 28vw;
    bottom: -5%;
    left: 30%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    animation-delay: -12s;
}

@keyframes ozw-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2%, 3%) scale(1.05); }
    66% { transform: translate(-2%, -2%) scale(0.97); }
}

.ozw-particles {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    opacity: 0.6;
}

.ozw-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(129, 140, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 140, 248, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
}

@media (prefers-reduced-motion: reduce) {
    .ozw-bg-orb {
        animation: none;
    }
}

/* ==========================================================================
   WEB PUBLIC / MARKETING
   ========================================================================== */

.web-body,
.auth-body {
    background: var(--web-bg, #111218);
    color: #f1f5f9;
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.web-body {
    display: flex;
    flex-direction: column;
}

.web-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(17,18,24,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.web-nav-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.web-logo {
    font-size: 1.125rem;
    font-weight: 800;
    color: #818cf8;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.web-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.web-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.4375rem 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.15s, color 0.15s;
}

.web-link:hover {
    background: rgba(255,255,255,0.06);
    color: #f1f5f9;
}

.web-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4375rem;
    padding: 0.5625rem 1.125rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s, box-shadow 0.2s;
}

.web-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.web-btn-primary {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    box-shadow: 0 2px 12px rgba(99,102,241,0.25);
}

.web-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

.web-btn-ghost {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.1);
}

.web-btn-ghost:hover {
    background: rgba(255,255,255,0.09);
}

.web-main { flex: 1; }

.web-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2rem 1.25rem;
    margin-top: 4rem;
}

.web-footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.web-footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.web-footer-links a { color: #64748b; text-decoration: none; }
.web-footer-links a:hover { color: #818cf8; }

.web-hero {
    max-width: 72rem;
    margin: 0 auto;
    padding: 5rem 1.25rem 3.5rem;
    text-align: center;
}

.web-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.web-hero-accent { color: #818cf8; }

.web-hero p {
    margin: 1.25rem auto 0;
    max-width: 42rem;
    color: #94a3b8;
    font-size: 1.0625rem;
    line-height: 1.65;
}

.web-hero-actions {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.web-section {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem 3.5rem;
}

.web-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.web-section-sub {
    color: #94a3b8;
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
}

.web-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.web-module-card {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.875rem;
    background: rgba(255,255,255,0.03);
    padding: 1.25rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(4px);
}

.web-module-card:hover {
    border-color: rgba(129,140,248,0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.web-module-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(99,102,241,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    overflow: hidden;
}

.web-module-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.web-module-price {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    background: rgba(99,102,241,0.12);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
}

.web-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.web-feature-card {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.875rem;
    background: rgba(255,255,255,0.025);
    padding: 1.25rem;
    transition: border-color 0.2s;
}

.web-feature-card:hover {
    border-color: rgba(129,140,248,0.2);
}

/* ── Site home / auth nav links ── */
.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}
.auth-home-link:hover { color: #a5b4fc; }
.auth-aside-brand-link { text-decoration: none; display: inline-block; }
.auth-aside-brand-link:hover .auth-aside-badge { border-color: rgba(129,140,248,0.35); }
.topbar-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.topbar-home-btn:hover {
    background: rgba(129,140,248,0.12);
    color: #a5b4fc;
    border-color: rgba(129,140,248,0.25);
}
.panel-topbar .topbar-home-btn { margin-right: 0.25rem; }

/* ── Public nav mobile ── */
.web-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.04);
    color: #e2e8f0;
    cursor: pointer;
}
@media (max-width: 768px) {
    .web-nav-toggle { display: inline-flex; }
    .web-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem 1rem;
        background: rgba(17,18,24,0.97);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        backdrop-filter: blur(16px);
        gap: 0.25rem;
    }
    .web-nav-links.open { display: flex; }
    .web-nav-inner { position: relative; flex-wrap: wrap; }
    .web-link-hide-sm { display: flex !important; }
    .web-nav-links .web-btn { width: 100%; margin-top: 0.35rem; }
}
@media (min-width: 769px) {
    .web-link-hide-sm { display: inline-flex; }
}

/* ==========================================================================
   AUTH LAYOUT
   ========================================================================== */

.auth-body {
    background: #07080f;
    color: #f1f5f9;
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
}

@keyframes ozw-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* ── Ozwor auth theme (normal + compact) ── */
.ozw-auth-page,
.ozw-auth-compact-page {
    min-height: 100dvh;
}

.ozw-auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    overflow: clip;
}

.ozw-auth-wrap .ozw-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.ozw-auth-wrap .auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
}

.ozw-auth-page .auth-shell {
    display: grid;
    min-height: 100dvh;
    width: 100%;
    align-items: stretch;
}

@media (min-width: 960px) {
    .ozw-auth-page .auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.ozw-auth-page .auth-aside {
    display: none;
    padding: 2rem 2.25rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 100dvh;
}

.ozw-auth-page .auth-aside::before {
    content: '';
    position: absolute;
    top: -6rem;
    left: -6rem;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.ozw-auth-page .auth-aside::after {
    content: '';
    position: absolute;
    bottom: -4rem;
    right: -4rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

@media (min-width: 960px) {
    .ozw-auth-page .auth-aside { display: flex; }
}

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

.auth-aside-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.3);
    color: #c7d2fe;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
}

.auth-aside-badge i { font-size: 0.625rem; opacity: 0.9; }

.auth-aside-title {
    font-size: clamp(1.375rem, 2.8vw, 1.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0.875rem 0 0;
    letter-spacing: -0.035em;
    color: #f8fafc;
}

.auth-aside-accent {
    background: linear-gradient(135deg, #e0e7ff 0%, #818cf8 45%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-aside-lead {
    color: #94a3b8;
    margin-top: 0.625rem;
    line-height: 1.55;
    font-size: 0.875rem;
    max-width: 22rem;
}

.auth-aside-features {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-aside-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.auth-aside-feature-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.auth-aside-feature-icon i {
    color: #a5b4fc;
    font-size: 0.625rem;
}

.auth-aside-copy {
    position: relative;
    z-index: 1;
    font-size: 0.8125rem;
    color: #475569;
    margin: 0;
}

.ozw-auth-page .auth-home-link {
    color: #64748b;
    margin-bottom: 0.65rem;
    font-size: 0.8125rem;
}

.ozw-auth-page .auth-home-link:hover { color: #a5b4fc; }

.auth-card-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
}

.auth-card-back:hover {
    color: #a5b4fc;
}

.ozw-auth-page .auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding:
        max(0.5rem, env(safe-area-inset-top, 0px))
        max(0.875rem, env(safe-area-inset-right, 0px))
        max(0.75rem, env(safe-area-inset-bottom, 0px))
        max(0.875rem, env(safe-area-inset-left, 0px));
    min-height: 0;
    box-sizing: border-box;
    width: 100%;
}

.ozw-auth-page .auth-main-inner {
    width: 100%;
    max-width: 26rem;
}

@media (min-width: 960px) {
    .ozw-auth-page .auth-aside {
        display: flex;
    }

    .ozw-auth-page .auth-main {
        min-height: 100dvh;
        justify-content: center;
        padding: 2rem 2.5rem;
    }

    .ozw-auth-page .auth-main-inner {
        max-width: 24rem;
    }

    .ozw-auth-page .auth-card,
    .ozw-auth-compact-page .auth-card {
        padding: 1.75rem 1.625rem 1.5rem;
    }
}

.ozw-auth-page .auth-card,
.ozw-auth-compact-page .auth-card {
    width: 100%;
    max-width: 26rem;
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 1rem 1rem 0.875rem;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 32px rgba(99, 102, 241, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.ozw-auth-page .auth-card h1,
.ozw-auth-compact-page .auth-card h1 {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f8fafc;
    margin-bottom: 0.2rem;
}

.ozw-auth-page .auth-card .auth-sub,
.ozw-auth-compact-page .auth-card .auth-sub {
    color: #94a3b8;
    font-size: 0.8125rem;
    margin-bottom: 0.875rem;
    line-height: 1.45;
}

.ozw-auth-page .auth-input,
.ozw-auth-page .auth-card input[type="email"],
.ozw-auth-page .auth-card input[type="password"],
.ozw-auth-page .auth-card input[type="text"],
.ozw-auth-compact-page .auth-input,
.ozw-auth-compact-page .auth-card input[type="email"],
.ozw-auth-compact-page .auth-card input[type="password"],
.ozw-auth-compact-page .auth-card input[type="text"] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    padding: 0.6875rem 0.875rem;
    color: #f1f5f9;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ozw-auth-page .auth-input:focus,
.ozw-auth-page .auth-card input:focus,
.ozw-auth-compact-page .auth-input:focus,
.ozw-auth-compact-page .auth-card input:focus {
    border-color: rgba(129, 140, 248, 0.55);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), 0 0 20px rgba(99, 102, 241, 0.08);
}

.ozw-auth-page .auth-btn,
.ozw-auth-compact-page .auth-btn {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    border-radius: 0.625rem;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ozw-auth-page .auth-btn:hover,
.ozw-auth-compact-page .auth-btn:hover {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ozw-auth-page .btn-social,
.ozw-auth-compact-page .btn-social {
    border-radius: 0.625rem;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    color: #e2e8f0;
}

.ozw-auth-page .btn-social-google,
.ozw-auth-compact-page .btn-social-google {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

.ozw-auth-page .btn-social-google:hover,
.ozw-auth-compact-page .btn-social-google:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(129, 140, 248, 0.25);
}

.ozw-auth-page .auth-social-telegram,
.ozw-auth-compact-page .auth-social-telegram {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.ozw-auth-page .auth-footer-links,
.ozw-auth-compact-page .auth-footer-links {
    color: #64748b;
}

.ozw-auth-page .auth-footer-links a,
.ozw-auth-compact-page .auth-footer-links a {
    color: #818cf8;
}

.ozw-auth-page .auth-footer-links a:hover,
.ozw-auth-compact-page .auth-footer-links a:hover {
    color: #a5b4fc;
}

.ozw-auth-page .auth-divider,
.ozw-auth-compact-page .auth-divider {
    color: #64748b;
}

.auth-form,
.space-y-4 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-form .auth-field,
.space-y-4 .auth-field {
    margin-bottom: 0;
}

/* Legacy auth shell — yalnızca ozw-auth-page olmayan sayfalar */
body:not(.ozw-auth-page):not(.ozw-auth-compact-page) .auth-shell {
    display: grid;
    min-height: 100vh;
    width: 100%;
}

@media (min-width: 960px) {
    body:not(.ozw-auth-page):not(.ozw-auth-compact-page) .auth-shell {
        grid-template-columns: 1fr 1fr;
    }
}

body:not(.ozw-auth-page):not(.ozw-auth-compact-page) .auth-aside {
    display: none;
    padding: 3rem;
    background: linear-gradient(160deg, #13141c 0%, #0e0f17 40%, #0a0b11 100%);
    border-right: 1px solid rgba(255,255,255,0.05);
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

body:not(.ozw-auth-page):not(.ozw-auth-compact-page) .auth-aside::before {
    content: '';
    position: absolute;
    top: -4rem;
    left: -4rem;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}

@media (min-width: 960px) {
    body:not(.ozw-auth-page):not(.ozw-auth-compact-page) .auth-aside {
        display: flex;
    }
}

body:not(.ozw-auth-page):not(.ozw-auth-compact-page) .auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1rem 1rem;
    min-height: 0;
    box-sizing: border-box;
}

/* ── Kompakt auth (masaüstü popup) ── */
.auth-body-compact {
    min-height: 100vh;
}

.auth-compact-main {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: 1rem 1rem 1.5rem;
    min-height: 100vh;
    box-sizing: border-box;
}

.auth-compact-header {
    text-align: center;
    padding: 0.75rem 0 1rem;
}

.auth-compact-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
}

.auth-compact-brand:hover { color: #cbd5e1; }

.auth-compact-hint {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

/* ── Ozwor compact auth (masaüstü token akışı) ── */
.ozw-auth-compact-page {
    min-height: 100vh;
}

.ozw-auth-compact-page .auth-compact-shell {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    min-height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:
        max(0.5rem, env(safe-area-inset-top, 0px))
        max(0.875rem, env(safe-area-inset-right, 0px))
        max(0.5rem, env(safe-area-inset-bottom, 0px))
        max(0.875rem, env(safe-area-inset-left, 0px));
    overflow: hidden;
}

.ozw-auth-compact-page .auth-compact-header {
    width: 100%;
    max-width: 26rem;
    text-align: center;
    margin-bottom: 0.65rem;
    flex-shrink: 0;
}

.ozw-auth-compact-page .auth-compact-header--minimal {
    margin-bottom: 0.45rem;
}

.ozw-auth-compact-page .auth-compact-minimal-title {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ozw-auth-compact-page .auth-compact-body {
    width: 100%;
    max-width: 26rem;
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ozw-auth-compact-page .auth-compact-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.25s;
}

.ozw-auth-compact-page .auth-compact-brand:hover {
    color: #c7d2fe;
}

.ozw-auth-compact-page .auth-compact-brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(34, 211, 238, 0.12));
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    font-size: 0.75rem;
}

.ozw-auth-compact-page .auth-compact-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    border: 1px solid rgba(129, 140, 248, 0.2);
    background: rgba(99, 102, 241, 0.08);
    color: #a5b4fc;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ozw-auth-compact-page .auth-compact-hint-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
    animation: ozw-pulse 2s ease-in-out infinite;
}

.ozw-auth-compact-page .auth-compact-body {
    width: 100%;
    max-width: 26rem;
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ozw-auth-compact-page .auth-card.auth-card-compact {
    max-width: none;
    width: 100%;
    max-height: min(92dvh, 720px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ozw-auth-device-page .auth-compact-shell {
    justify-content: center;
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ozw-auth-device-page .auth-compact-body {
    flex: 0 1 auto;
    width: 100%;
    max-width: 26rem;
    max-height: none;
}

.ozw-auth-device-page .auth-device-popup {
    position: relative;
    z-index: 2;
}

.ozw-auth-app-flow-page .auth-compact-shell {
    justify-content: center;
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
}

.ozw-auth-app-flow-page .auth-card.auth-card-compact {
    max-height: min(90dvh, 660px);
}

.ozw-auth-app-flow-page .auth-card.auth-card-compact h1 {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.ozw-auth-app-flow-page .auth-card.auth-card-compact .auth-sub {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

.auth-app-flow-card .auth-app-banner-title {
    color: #e2e8f0;
}

.auth-app-flow-card .auth-app-banner-text {
    color: #94a3b8;
}

.auth-app-flow-card .auth-app-banner-link {
    color: #fff;
    text-decoration: none;
}

/* Desktop app connection card */
.auth-app-flow-card {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.06) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-app-flow-card.auth-app-banner-warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(99, 102, 241, 0.04) 100%);
}

.auth-app-flow-card.auth-app-banner-error {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(99, 102, 241, 0.04) 100%);
}

.auth-app-flow-head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.auth-app-flow-icon {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(129, 140, 248, 0.3);
    color: #a5b4fc;
    font-size: 1rem;
}

.auth-app-flow-pulse {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid rgba(34, 211, 238, 0.4);
    animation: auth-app-pulse 2s ease-out infinite;
}

@keyframes auth-app-pulse {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.25); }
}

.auth-app-flow-endpoint {
    margin-top: 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.auth-app-flow-endpoint-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.auth-app-flow-endpoint code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    color: #22d3ee;
    word-break: break-all;
}

.auth-app-flow-card .auth-app-banner-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
    color: #cbd5e1;
}

.auth-app-flow-card .auth-app-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    text-decoration: none;
    font-size: 0.8125rem;
}

.auth-app-banner {
    margin-bottom: 1rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.auth-app-banner-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
}

.auth-app-banner-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fde68a;
}

.auth-app-banner-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fecaca;
}

.auth-app-banner-title {
    margin: 0 0 0.25rem;
    font-weight: 600;
    font-size: 0.8125rem;
}

.auth-app-banner-text {
    margin: 0;
    opacity: 0.95;
}

.auth-app-banner-meta {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    opacity: 0.85;
}

.auth-app-banner-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
}

.auth-device-card {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.875rem;
    background: rgba(255,255,255,0.03);
    padding: 1.25rem;
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.auth-device-head {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.auth-device-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
}

.auth-device-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99,102,241,0.2);
    font-size: 1.25rem;
}

.auth-device-kicker {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #818cf8;
}

.auth-device-title {
    margin: 0.125rem 0 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
}

.auth-device-sub {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.auth-device-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.625rem;
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.875rem;
}

.auth-device-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(99,102,241,0.25);
    color: #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.auth-device-user-meta { flex: 1; min-width: 0; }

.auth-device-user-name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f1f5f9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-device-user-email {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-device-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.auth-device-badge-ok {
    background: rgba(34,197,94,0.15);
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.25);
}

.auth-device-badge-new {
    background: rgba(245,158,11,0.12);
    color: #fcd34d;
    border: 1px solid rgba(245,158,11,0.25);
}

.auth-device-perms {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.auth-device-perms li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.auth-device-details {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
}

.auth-device-details summary {
    cursor: pointer;
    color: #94a3b8;
    user-select: none;
}

.auth-device-details dl {
    margin: 0.5rem 0 0;
    display: grid;
    gap: 0.35rem;
}

.auth-device-details dl div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.auth-device-details dt { opacity: 0.8; }
.auth-device-details dd { margin: 0; font-family: ui-monospace, monospace; color: #cbd5e1; }

.auth-device-footnote {
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #64748b;
    text-align: center;
}

.auth-device-actions { margin-bottom: 0.5rem; }

.auth-device-approve {
    width: 100%;
}

.auth-device-approve:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-device-deny {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.625rem;
    background: transparent;
    color: #94a3b8;
    font-size: 0.8125rem;
    cursor: pointer;
}

.auth-device-deny:hover {
    background: rgba(255,255,255,0.04);
    color: #cbd5e1;
}

/* Popup — cihaz erişim onayı (masaüstü tarayıcı penceresi) */
.auth-device-popup {
    display: flex;
    flex-direction: column;
    max-height: min(92dvh, 680px);
    padding: 0;
    overflow: hidden;
}

.auth-device-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.125rem 0.75rem;
}

.auth-device-actions-bar {
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    padding: 0.65rem 1.125rem max(0.75rem, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 17, 28, 0.98);
}

.auth-device-actions-bar .auth-device-approve:not(:disabled) {
    cursor: pointer;
    pointer-events: auto;
}

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

.auth-device-approve.is-busy {
    opacity: 0.72;
    pointer-events: none;
}

/* Cihaz onayı → uygulama köprü sayfası */
.ozw-auth-device-bridge-page .auth-compact-shell {
    justify-content: center;
}

.auth-device-bridge {
    text-align: center;
    padding: 1.25rem 1.125rem 1.125rem;
}

.auth-device-bridge-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.875rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(129, 140, 248, 0.28);
    color: #a5b4fc;
    font-size: 1.125rem;
}

.auth-device-bridge-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f1f5f9;
}

.auth-device-bridge-sub {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #94a3b8;
}

.auth-device-bridge-meta {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

.auth-device-bridge-meta code {
    font-family: ui-monospace, monospace;
    color: #cbd5e1;
}

.auth-device-bridge-actions {
    margin-top: 0.75rem;
}

.auth-device-bridge-actions .auth-device-footnote {
    margin-top: 0.625rem;
}

.auth-device-popup .auth-device-head {
    margin-bottom: 0.75rem;
}

.auth-device-popup .auth-device-logo,
.auth-device-popup .auth-device-logo-fallback {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}

.auth-device-popup .auth-device-title {
    font-size: 1.0625rem;
}

.auth-device-popup .auth-device-sub {
    font-size: 0.75rem;
}

.auth-device-popup .auth-device-user {
    margin-bottom: 0.65rem;
    padding: 0.65rem 0.75rem;
}

.auth-device-popup .auth-device-perms {
    margin: 0 0 0.5rem;
    gap: 0.35rem;
}

.auth-device-popup .auth-device-perms li {
    font-size: 0.75rem;
    gap: 0.45rem;
}

.auth-device-popup .auth-device-perms li i {
    width: 1rem;
    color: #818cf8;
    font-size: 0.6875rem;
}

.auth-device-popup .auth-device-details {
    margin-bottom: 0;
}

.auth-device-popup .auth-device-footnote {
    margin: 0 0 0.55rem;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #64748b;
}

.auth-device-popup .auth-device-actions {
    margin-bottom: 0.4rem;
}

.auth-device-popup .auth-device-approve {
    min-height: 2.625rem;
}

.auth-device-popup .auth-device-deny {
    min-height: 2.375rem;
}

.ozw-auth-compact-page .auth-app-flow-card {
    margin-bottom: 0.875rem;
    padding: 0.75rem 0.85rem;
}

.ozw-auth-compact-page .auth-app-flow-endpoint {
    margin-top: 0.55rem;
    padding: 0.45rem 0.6rem;
}

.ozw-auth-compact-page .auth-app-flow-head {
    gap: 0.65rem;
}

.ozw-auth-compact-page .auth-app-flow-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
}

@media (min-width: 960px) {
    body:not(.ozw-auth-page):not(.ozw-auth-compact-page) .auth-main {
        min-height: auto;
    }
}

.auth-card {
    width: 100%;
    max-width: 26rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    background: rgba(255,255,255,0.03);
    padding: 2rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.auth-card .auth-sub {
    color: #64748b;
    font-size: 0.8125rem;
    margin-bottom: 0.875rem;
    line-height: 1.45;
}

.auth-field { margin-bottom: 0.75rem; }

.auth-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.375rem;
}

.auth-input,
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"],
.auth-card textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.5rem;
    padding: 0.625rem 0.8125rem;
    color: #f1f5f9;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus,
.auth-card input:focus,
.auth-card textarea:focus {
    border-color: rgba(99,102,241,0.6);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.auth-input::placeholder {
    color: #475569;
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.6875rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(99,102,241,0.25);
}

.auth-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

.auth-btn:active {
    transform: none;
    opacity: 1;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0.75rem 0;
    color: #475569;
    font-size: 0.6875rem;
}

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

.btn-social {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.15s, border-color 0.15s;
    min-height: 2.625rem;
    box-sizing: border-box;
}

.btn-social-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    display: block;
}

.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-social-telegram {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0;
    border: none;
    background: transparent;
    overflow: hidden;
    min-height: 0;
}

.auth-social-telegram iframe {
    max-height: 40px !important;
}

.btn-social-google {
    background: var(--bg-elevated, #1e1e1e);
    color: var(--text-primary, #e0e0e0);
    border-color: var(--border, #333);
}

.btn-social-google:hover {
    background: var(--bg-hover, #252525);
}

.btn-social-facebook {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.btn-social-facebook:hover {
    background: #166fe5;
}

.btn-social-x {
    background: #000;
    color: #fff;
    border-color: rgba(255,255,255,0.12);
}

.btn-social-x:hover {
    background: #111;
}

.btn-social-telegram {
    background: rgba(36, 161, 222, 0.12);
    border-color: rgba(36, 161, 222, 0.35);
    color: #7dd3fc;
}

.btn-social-telegram:hover {
    background: rgba(36, 161, 222, 0.2);
    border-color: rgba(56, 189, 248, 0.45);
    color: #bae6fd;
}

.btn-social-telegram .btn-social-icon {
    font-size: 1.125rem;
    width: auto;
    height: auto;
}

.auth-social-telegram-hint {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    color: #64748b;
    text-align: center;
}

.ozw-telegram-bot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.ozw-telegram-bot-link:hover {
    color: #7dd3fc;
}

.web-footer-social a[aria-label^="Telegram"] {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.25);
}

.web-footer-social a[aria-label^="Telegram"]:hover {
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(36, 161, 222, 0.12);
}

.auth-footer-links {
    margin-top: 0.875rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #64748b;
}

.auth-footer-links a {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-footer-links a:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.auth-alert-error {
    border: 1px solid rgba(239,68,68,0.35);
    background: rgba(127,29,29,0.25);
    color: #fca5a5;
}

.auth-alert-success {
    border: 1px solid rgba(16,185,129,0.35);
    background: rgba(6,78,59,0.25);
    color: #6ee7b7;
}

.auth-card .flash-alert {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.auth-card .flash-success {
    border: 1px solid rgba(16,185,129,0.35);
    background: rgba(6,78,59,0.25);
    color: #6ee7b7;
}

.auth-card .flash-error {
    border: 1px solid rgba(239,68,68,0.35);
    background: rgba(127,29,29,0.25);
    color: #fca5a5;
}

.auth-status-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-status-icon.success {
    background: rgba(16,185,129,0.12);
    color: #34d399;
}

.auth-status-icon.error {
    background: rgba(239,68,68,0.12);
    color: #f87171;
}

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.auth-checkbox input {
    margin-top: 0.15rem;
    accent-color: #6366f1;
    flex-shrink: 0;
}

.auth-checkbox a { color: #818cf8; }

.terms-content {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.terms-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   AUTH MOBİL — modern responsive giriş / kayıt
   ========================================================================== */

@media (max-width: 639px) {
    .ozw-auth-page,
    .ozw-auth-compact-page,
    .ozw-auth-wrap {
        min-height: auto;
    }

    .auth-main,
    .ozw-auth-page .auth-main,
    .ozw-auth-compact-page .auth-main {
        align-items: stretch;
        justify-content: flex-start;
        padding:
            max(0.375rem, env(safe-area-inset-top, 0px))
            max(0.75rem, env(safe-area-inset-right, 0px))
            max(0.625rem, env(safe-area-inset-bottom, 0px))
            max(0.75rem, env(safe-area-inset-left, 0px));
        min-height: 0;
    }

    .ozw-auth-page .auth-main-inner {
        max-width: none;
    }

    .auth-card,
    .ozw-auth-page .auth-card,
    .ozw-auth-compact-page .auth-card {
        width: 100%;
        max-width: none;
        padding: 0.875rem 0.875rem 0.75rem;
        border-radius: 0.875rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    }

    .auth-card-back {
        margin-bottom: 0.375rem;
    }

    .auth-card h1,
    .ozw-auth-page .auth-card h1 {
        font-size: 1.1875rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .auth-card .auth-sub,
    .ozw-auth-page .auth-card .auth-sub {
        font-size: 0.8125rem;
        line-height: 1.4;
        margin-bottom: 0.625rem;
    }

    .auth-form,
    .space-y-4 {
        gap: 0.625rem;
    }

    .auth-card input[type="email"],
    .auth-card input[type="password"],
    .auth-card input[type="text"],
    .auth-card textarea,
    .ozw-auth-page .auth-card input[type="email"],
    .ozw-auth-page .auth-card input[type="password"],
    .ozw-auth-page .auth-card input[type="text"] {
        min-height: 2.625rem;
        font-size: 16px;
        border-radius: 0.625rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .auth-card .web-btn,
    .auth-card .panel-btn,
    .auth-card button[type="submit"],
    .ozw-auth-page .web-btn-primary,
    .btn-social {
        min-height: 2.5rem;
        border-radius: 0.625rem;
        font-weight: 600;
    }

    .auth-card .auth-btn {
        min-height: 2.625rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .auth-divider {
        margin: 0.5rem 0;
    }

    .auth-social-buttons {
        gap: 0.375rem;
    }

    .auth-social-telegram {
        padding: 0.125rem 0 0;
    }

    .auth-footer-links {
        margin-top: 0.625rem;
        font-size: 0.75rem;
    }

    .auth-social-grid,
    .auth-oauth-row {
        grid-template-columns: 1fr !important;
        gap: 0.375rem;
    }

    .auth-oauth-row a,
    .auth-social-grid a {
        min-height: 2.5rem;
        border-radius: 0.625rem;
    }

    .auth-app-flow-card {
        padding: 0.75rem;
        border-radius: 0.75rem;
        margin-bottom: 0.625rem;
    }

    .auth-compact-main {
        padding: 0.75rem 1rem 1.25rem;
    }

    .ozw-auth-compact-page .auth-card.auth-card-compact {
        padding: 1.125rem 1rem 1rem;
        max-height: min(90dvh, 680px);
    }

    .ozw-auth-compact-page .auth-compact-shell {
        justify-content: flex-start;
        padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ozw-auth-device-page .auth-compact-shell {
        justify-content: center;
        overflow: hidden;
    }

    .ozw-auth-device-page .auth-device-popup {
        max-height: min(88dvh, 640px);
    }

    .auth-device-card,
    .auth-2fa-methods {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 380px) {
    .auth-card,
    .ozw-auth-page .auth-card {
        padding: 0.75rem 0.75rem 0.625rem;
    }
}

/* Auth theme — loaded after appold.css to win legacy overrides */

.ozw-auth-page .auth-card,
.ozw-auth-compact-page .auth-card.auth-card-compact {
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 1.125rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 1rem 1rem 0.875rem;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 40px rgba(99, 102, 241, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.ozw-auth-compact-page .auth-card.auth-card-compact {
    max-width: none;
    width: 100%;
}

.ozw-auth-page .auth-card input,
.ozw-auth-compact-page .auth-card input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.ozw-auth-page .auth-field label,
.ozw-auth-compact-page .auth-field label {
    color: #94a3b8;
}

.ozw-auth-compact-page .auth-app-flow-card {
    color: #cbd5e1;
}

.ozw-auth-compact-page .web-btn.ozw-btn-glow {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}