/* Müşteri portalı — ultra premium mobil-first */
:root {
    --cp-bg: #f1f5f9;
    --cp-surface: #ffffff;
    --cp-text: #0f172a;
    --cp-muted: #64748b;
    --cp-border: rgba(148, 163, 184, 0.28);
    --cp-violet: #6d28d9;
    --cp-violet-deep: #4c1d95;
    --cp-indigo: #4f46e5;
    --cp-gold: #e8c547;
    --cp-radius: 16px;
    --cp-radius-lg: 22px;
    --cp-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --cp-nav-h: 56px;
    --cp-bottom-h: 64px;
    --cp-safe-b: env(safe-area-inset-bottom, 0px);
    --cp-safe-t: env(safe-area-inset-top, 0px);
}

.cp-body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    background: var(--cp-bg);
    color: var(--cp-text);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

.cp-shell {
    min-height: 100dvh;
    padding-bottom: calc(var(--cp-bottom-h) + var(--cp-safe-b));
}
@media (min-width: 1024px) {
    .cp-shell {
        padding-bottom: 0;
    }
}

/* Top bar */
.cp-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: calc(var(--cp-nav-h) + var(--cp-safe-t));
    padding-top: var(--cp-safe-t);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--cp-border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}
.cp-topbar__inner {
    max-width: 80rem;
    margin: 0 auto;
    height: var(--cp-nav-h);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.cp-topbar__logo img {
    height: 36px;
    width: auto;
}
.cp-topbar__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
}
@media (min-width: 1024px) {
    .cp-topbar__menu {
        display: none;
    }
}
.cp-topbar__nav {
    display: none;
    align-items: center;
    gap: 4px;
}
@media (min-width: 1024px) {
    .cp-topbar__nav {
        display: flex;
        margin-left: 24px;
    }
}
.cp-topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cp-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.cp-topbar__link:hover {
    color: var(--cp-text);
    background: #f1f5f9;
}
.cp-topbar__link.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--cp-indigo), var(--cp-violet));
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
}
.cp-topbar__user {
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--cp-muted);
}
@media (min-width: 768px) {
    .cp-topbar__user {
        display: flex;
    }
}
.cp-topbar__user strong {
    color: var(--cp-text);
}
.cp-topbar__logout {
    border: none;
    background: transparent;
    color: var(--cp-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
}
.cp-topbar__logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* Mobile drawer */
.cp-drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    visibility: hidden;
}
.cp-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}
.cp-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transition: opacity 0.25s;
}
.cp-drawer.is-open .cp-drawer__backdrop {
    opacity: 1;
}
.cp-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    background: #fff;
    box-shadow: 8px 0 40px rgba(15, 23, 42, 0.15);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding-top: max(16px, var(--cp-safe-t));
}
.cp-drawer.is-open .cp-drawer__panel {
    transform: translateX(0);
}
.cp-drawer__head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--cp-border);
}
.cp-drawer__name {
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 700;
}
.cp-drawer__email {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--cp-muted);
}
.cp-drawer__nav {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cp-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cp-text);
    text-decoration: none;
}
.cp-drawer__link.is-active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(109, 40, 217, 0.08));
    color: var(--cp-violet-deep);
}
.cp-drawer__foot {
    padding: 16px;
    border-top: 1px solid var(--cp-border);
}

/* Bottom tab bar (mobile) */
.cp-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    height: calc(var(--cp-bottom-h) + var(--cp-safe-b));
    padding-bottom: var(--cp-safe-b);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--cp-border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.06);
}
@media (min-width: 1024px) {
    .cp-bottomnav {
        display: none;
    }
}
.cp-bottomnav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cp-muted);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
}
.cp-bottomnav__item i {
    font-size: 18px;
}
.cp-bottomnav__item.is-active {
    color: var(--cp-violet);
}

/* Hero */
.cp-hero {
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 38%, #6d28d9 100%);
    position: relative;
    overflow: hidden;
}
.cp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(232, 197, 71, 0.18), transparent 55%);
    pointer-events: none;
}
.cp-hero__inner {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 20px 16px 28px;
    text-align: center;
}
@media (min-width: 768px) {
    .cp-hero__inner {
        padding: 32px 24px 40px;
    }
}
.cp-hero__title {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.cp-hero__sub {
    margin: 8px auto 0;
    max-width: 36rem;
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}
.cp-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Main */
.cp-main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 16px 32px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}
@media (min-width: 768px) {
    .cp-main {
        margin-top: -28px;
        padding: 0 24px 48px;
    }
}

/* Cards & stats */
.cp-card {
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-lg);
    box-shadow: var(--cp-shadow);
}
.cp-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .cp-stat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}
.cp-stat-grid--5 {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
    .cp-stat-grid--5 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .cp-stat-grid--5 {
        grid-template-columns: repeat(5, 1fr);
    }
}
.cp-stat {
    padding: 16px;
    text-align: center;
}
.cp-stat__val {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.cp-stat__lbl {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--cp-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cp-grid-2 {
    display: grid;
    gap: 16px;
}
@media (min-width: 768px) {
    .cp-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}
.cp-page-grid {
    display: grid;
    gap: 20px;
}
@media (min-width: 1024px) {
    .cp-page-grid {
        grid-template-columns: 1fr 280px;
    }
}

/* Service list cards (mobile stack) */
.cp-svc-item {
    display: block;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.cp-svc-item:hover {
    background: #f8fafc;
}
.cp-svc-item:last-child {
    border-bottom: none;
}
@media (max-width: 639px) {
    .cp-svc-item__row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .cp-svc-item__meta {
        flex-wrap: wrap;
    }
    .cp-svc-item h4 {
        font-size: 14px !important;
    }
}

/* Status badges */
.cp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}
.cp-badge--registered { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.cp-badge--pending { background: linear-gradient(135deg, #d97706, #f59e0b); }
.cp-badge--in_progress { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.cp-badge--in_service { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.cp-badge--waiting_for_customer { background: linear-gradient(135deg, #ea580c, #ef4444); }
.cp-badge--waiting_for_parts { background: linear-gradient(135deg, #a855f7, #ec4899); }
.cp-badge--completed { background: linear-gradient(135deg, #059669, #10b981); }
.cp-badge--closed { background: linear-gradient(135deg, #475569, #64748b); }
.cp-badge--cancelled { background: linear-gradient(135deg, #b91c1c, #ef4444); }

/* Buttons */
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
    width: 100%;
}
@media (min-width: 640px) {
    .cp-btn {
        width: auto;
    }
}
.cp-btn--primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--cp-indigo), var(--cp-violet));
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.35);
}
.cp-btn--primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.cp-btn--ghost {
    background: #f1f5f9;
    color: var(--cp-text) !important;
}
.cp-btn-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 640px) {
    .cp-btn-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Filters */
.cp-filter {
    padding: 20px;
    margin-bottom: 16px;
}
.cp-filter .grid {
    gap: 12px;
}
@media (max-width: 639px) {
    .cp-filter .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Messages (service show) */
.cp-messages {
    max-height: min(50dvh, 400px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 639px) {
    .cp-msg-form__actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .cp-msg-form__actions button[type="submit"] {
        width: 100%;
    }
}

/* Auth */
.cp-auth-body {
    margin: 0;
    overflow-x: hidden;
}
.cp-auth-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--cp-border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    padding-top: var(--cp-safe-t);
}
.cp-auth-topbar__inner {
    max-width: 80rem;
    margin: 0 auto;
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cp-auth-topbar__logo img {
    height: 34px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}
.cp-auth-topbar__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.cp-auth-topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cp-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.cp-auth-topbar__link:not(.cp-auth-topbar__link--primary):hover {
    color: var(--cp-text);
    background: #f1f5f9;
}
.cp-auth-topbar__link--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--cp-indigo), var(--cp-violet));
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
}
.cp-auth-topbar__link--primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 55%, #7c3aed 100%);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.45);
    filter: none;
}
.cp-auth-page {
    min-height: calc(100dvh - 56px);
    background: linear-gradient(145deg, #1e1b4b 0%, #4c1d95 45%, #7c3aed 100%);
    position: relative;
    overflow-x: hidden;
}
.cp-auth-page::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 60%;
    top: -20%;
    left: -10%;
    background: radial-gradient(ellipse, rgba(232, 197, 71, 0.15), transparent 70%);
    pointer-events: none;
}
.cp-auth-wrap {
    position: relative;
    min-height: calc(100dvh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px max(32px, var(--cp-safe-b));
}
.cp-auth-stack {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.cp-auth-stack--wide {
    max-width: min(720px, 100%);
}
.cp-auth-page--register .cp-auth-wrap {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 40px;
}
.cp-auth-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--cp-radius-lg);
    padding: 28px 24px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.cp-auth-card--register {
    padding: 24px 20px;
}
@media (min-width: 640px) {
    .cp-auth-card--register {
        padding: 28px 28px;
    }
}
.cp-auth-foot {
    margin-top: 20px;
    text-align: center;
}
.cp-auth-foot a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cp-auth-foot a:hover {
    color: #fff;
}
.cp-auth-title {
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
}
.cp-auth-title h1 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
}
.cp-auth-title p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}
.cp-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--cp-border);
    padding: 12px 14px;
    font-size: 16px;
}
.cp-input:focus {
    outline: none;
    border-color: var(--cp-violet);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}

/* Hide legacy duplicate nav when cp-* active */
.cp-body .glass-nav,
.cp-body nav.glass-nav {
    display: none !important;
}

/* Utility: touch targets */
@media (max-width: 1023px) {
    .cp-touch {
        min-height: 44px;
    }
}

/* ========== Dashboard — ultra premium ========== */
.cp-dash-hero {
    position: relative;
    text-align: left;
}
.cp-dash-hero__glow {
    position: absolute;
    right: -20%;
    top: -40%;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle, rgba(232, 197, 71, 0.22), transparent 65%);
    pointer-events: none;
}
.cp-dash-hero__content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 40rem;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .cp-dash-hero__content {
        margin: 0;
        max-width: none;
    }
    .cp-hero__inner:has(.cp-dash-hero) {
        text-align: left;
        padding-bottom: 36px;
    }
}
.cp-dash-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
@media (min-width: 768px) {
    .cp-dash-avatar {
        width: 64px;
        height: 64px;
        font-size: 20px;
        border-radius: 20px;
    }
}
.cp-dash-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 4px;
}
.cp-dash-hero__text .cp-hero__title {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    text-align: left;
}
.cp-dash-hero__text .cp-hero__sub {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    font-size: 0.875rem;
}

.cp-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
@media (max-width: 380px) {
    .cp-dash-stats {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 640px) {
    .cp-dash-stats {
        gap: 14px;
        margin-bottom: 20px;
    }
}
.cp-dash-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cp-dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}
.cp-dash-stat__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}
.cp-dash-stat--total .cp-dash-stat__icon {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
}
.cp-dash-stat--open .cp-dash-stat__icon {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}
.cp-dash-stat--done .cp-dash-stat__icon {
    background: linear-gradient(135deg, #059669, #10b981);
}
.cp-dash-stat__val {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--cp-text);
}
.cp-dash-stat__lbl {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cp-muted);
}

.cp-dash-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
@media (max-width: 640px) {
    .cp-dash-actions {
        grid-template-columns: 1fr;
    }
}
.cp-dash-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px;
    border-radius: var(--cp-radius);
    border: 1px solid var(--cp-border);
    background: var(--cp-surface);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--cp-shadow);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    min-height: 88px;
}
.cp-dash-action:hover {
    transform: translateY(-2px);
    border-color: rgba(109, 40, 217, 0.35);
    box-shadow: 0 14px 40px rgba(109, 40, 217, 0.12);
}
.cp-dash-action--primary {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border-color: rgba(109, 40, 217, 0.25);
}
.cp-dash-action__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--cp-indigo), var(--cp-violet));
    margin-bottom: 4px;
}
.cp-dash-action--primary .cp-dash-action__icon {
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
}
.cp-dash-action:not(.cp-dash-action--primary) .cp-dash-action__icon {
    background: #f1f5f9;
    color: var(--cp-violet);
}
.cp-dash-action__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--cp-text);
}
.cp-dash-action__hint {
    font-size: 11px;
    font-weight: 600;
    color: var(--cp-muted);
}

.cp-dash-layout {
    display: grid;
    gap: 16px;
}
@media (min-width: 1024px) {
    .cp-dash-layout {
        grid-template-columns: minmax(280px, 340px) 1fr;
        gap: 20px;
        align-items: start;
    }
}

.cp-dash-section-head {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.cp-dash-section-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cp-text);
}
.cp-dash-section-head h2 i {
    color: var(--cp-violet);
    font-size: 0.95rem;
}
.cp-dash-section-head--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.cp-dash-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--cp-violet);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cp-dash-link:hover {
    color: var(--cp-indigo);
}

.cp-dash-profile__list {
    margin: 0;
    padding: 8px 0;
}
.cp-dash-profile__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #f8fafc;
    font-size: 14px;
}
.cp-dash-profile__row:last-child {
    border-bottom: none;
}
.cp-dash-profile__row--sep {
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    padding-top: 18px;
}
.cp-dash-profile__row dt {
    color: var(--cp-muted);
    font-weight: 600;
    flex-shrink: 0;
}
.cp-dash-profile__row dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
    color: var(--cp-text);
}
.cp-dash-profile__break {
    word-break: break-all;
    max-width: 60%;
}

.cp-dash-ticket-list {
    display: grid;
    gap: 12px;
    padding: 16px;
}
@media (min-width: 768px) {
    .cp-dash-ticket-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
@media (min-width: 1280px) {
    .cp-dash-ticket-list {
        grid-template-columns: 1fr;
    }
}
.cp-dash-ticket {
    display: block;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--cp-border);
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cp-dash-ticket:hover {
    transform: translateY(-2px);
    border-color: rgba(109, 40, 217, 0.3);
    box-shadow: 0 12px 32px rgba(109, 40, 217, 0.1);
}
.cp-dash-ticket__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.cp-dash-ticket__id {
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 12px;
    font-weight: 800;
    color: var(--cp-text);
}
.cp-dash-ticket__product {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--cp-text);
}
.cp-dash-ticket__desc {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--cp-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cp-dash-ticket__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    font-weight: 600;
    color: var(--cp-muted);
}
.cp-dash-ticket__foot time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cp-dash-ticket__arrow {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--cp-violet);
    transition: background 0.15s, color 0.15s;
}
.cp-dash-ticket:hover .cp-dash-ticket__arrow {
    background: linear-gradient(135deg, var(--cp-indigo), var(--cp-violet));
    color: #fff;
}

.cp-dash-empty {
    padding: 40px 24px 48px;
    text-align: center;
}
.cp-dash-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--cp-violet);
}
.cp-dash-empty h3 {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 800;
}
.cp-dash-empty p {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--cp-muted);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.cp-dash-empty .cp-btn {
    max-width: 280px;
    margin: 0 auto;
}

.cp-dash-pagination {
    padding: 12px 16px 16px;
    border-top: 1px solid #f1f5f9;
}
.cp-dash-pagination nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.cp-dash-pagination a,
.cp-dash-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}
.cp-dash-pagination a {
    background: #f8fafc;
    color: var(--cp-violet);
    text-decoration: none;
    border: 1px solid var(--cp-border);
}
.cp-dash-pagination span[aria-current="page"] span {
    background: linear-gradient(135deg, var(--cp-indigo), var(--cp-violet));
    color: #fff;
    border: none;
}

/* ========== Kayıt sayfası — premium, iç scroll yok ========== */
.cp-reg-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cp-reg-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .cp-reg-grid--2 {
        grid-template-columns: 1fr 1fr;
    }
}
.cp-reg-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.cp-reg-field label i {
    color: var(--cp-violet);
    font-size: 14px;
    width: 16px;
    text-align: center;
}
.cp-reg-input-wrap {
    position: relative;
}
.cp-reg-input-wrap .cp-input {
    padding-right: 44px;
}
.cp-reg-toggle-pw {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0 12px 12px 0;
}
.cp-reg-toggle-pw:hover {
    color: var(--cp-violet);
}
/* Hesap tipi — yatay segmented control */
.cp-reg-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cp-reg-seg__opt {
    position: relative;
    cursor: pointer;
    min-width: 0;
}
.cp-reg-seg__opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.cp-reg-seg__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    padding: 10px 8px;
    border-radius: 14px;
    text-align: center;
    transition:
        background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.22s ease,
        color 0.22s ease;
}
.cp-reg-seg__opt:hover .cp-reg-seg__pill {
    background: rgba(255, 255, 255, 0.65);
}
.cp-reg-seg__opt input:focus-visible + .cp-reg-seg__pill {
    outline: 2px solid var(--cp-violet);
    outline-offset: 2px;
}
.cp-reg-seg__opt input:checked + .cp-reg-seg__pill {
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 50%, #7c3aed 100%);
    box-shadow:
        0 8px 24px rgba(109, 40, 217, 0.38),
        0 2px 6px rgba(79, 70, 229, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}
.cp-reg-seg__ico {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-size: 15px;
    transition: background 0.28s ease, color 0.28s ease;
}
.cp-reg-seg__opt input:checked + .cp-reg-seg__pill .cp-reg-seg__ico {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.cp-reg-seg__ico i {
    color: inherit;
}
.cp-reg-seg__lbl {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
}
.cp-reg-seg__title {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    letter-spacing: -0.02em;
    line-height: 1.2;
    transition: color 0.22s ease;
}
.cp-reg-seg__sub {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.2;
    transition: color 0.22s ease;
}
.cp-reg-seg__opt input:checked + .cp-reg-seg__pill .cp-reg-seg__title,
.cp-reg-seg__opt input:checked + .cp-reg-seg__pill .cp-reg-seg__sub {
    color: #fff;
}
.cp-reg-seg__opt input:checked + .cp-reg-seg__pill .cp-reg-seg__sub {
    opacity: 0.88;
}
@media (min-width: 420px) {
    .cp-reg-seg__pill {
        min-height: 60px;
        padding: 12px 14px;
        gap: 10px;
    }
    .cp-reg-seg__ico {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .cp-reg-seg__title {
        font-size: 14px;
    }
    .cp-reg-seg__sub {
        font-size: 11px;
    }
}
.cp-reg-corporate {
    display: none;
    padding: 18px;
    border-radius: var(--cp-radius);
    background: linear-gradient(180deg, #f5f3ff 0%, #eef2ff 100%);
    border: 1px solid rgba(109, 40, 217, 0.2);
}
.cp-reg-corporate.is-open {
    display: block;
}
.cp-reg-corporate__title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--cp-violet-deep);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cp-reg-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.cp-reg-strength__track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.cp-reg-strength__bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.3s, background 0.3s;
}
.cp-reg-strength__bar.is-weak { width: 33%; background: #f87171; }
.cp-reg-strength__bar.is-mid { width: 66%; background: #fbbf24; }
.cp-reg-strength__bar.is-strong { width: 100%; background: #34d399; }
.cp-reg-strength__text {
    font-size: 11px;
    font-weight: 700;
    color: var(--cp-muted);
    min-width: 36px;
}
.cp-reg-match {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}
.cp-reg-match.is-ok { color: #059669; }
.cp-reg-match.is-bad { color: #dc2626; }
.cp-reg-alert {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13px;
}
.cp-reg-alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}
.cp-reg-divider {
    margin: 4px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--cp-border);
    text-align: center;
    font-size: 14px;
    color: var(--cp-muted);
}
.cp-reg-divider a {
    font-weight: 700;
    color: var(--cp-violet);
    text-decoration: none;
}
.cp-reg-divider a:hover {
    text-decoration: underline;
}
.cp-reg-submit {
    margin-top: 4px;
}
.cp-reg-submit .cp-btn,
.cp-auth-card .cp-btn.cp-touch {
    width: 100%;
}
.cp-auth-card .w-full {
    width: 100%;
}

.cp-product-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
.cp-product-link:hover {
    color: var(--cp-indigo);
    text-decoration: underline;
}
