/* ==========================================================================
   NovaPrime - Kontrol Paneli, Profil (Hesap Ayarları) & Şans Çarkı Styles
   Matched 1:1 with user reference screenshots
   ========================================================================== */

:root {
    --bg-page: #0a0a0e;
    --bg-muted: #111117;
    --bg-card: #14141e;
    --bg-card-hover: #1c1c28;
    --bg-elevated: #1e1e2d;
    --bg-input: #0f0f16;
    --border-color: #242434;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(129, 130, 248, 0.45);
    --primary: #8182f8;
    --primary-hover: #9697fb;
    --primary-rgb: 129, 130, 248;
    --accent-purple: #6366f1;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --text-main: #f3f3f8;
    --text-muted: #8e8ea2;
    --text-dim: #606075;
    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-glow-1 {
    position: absolute;
    top: -150px;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(129, 130, 248, 0.07) 0%, transparent 70%);
}

.ambient-glow-2 {
    position: absolute;
    bottom: 50px;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.dashboard-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 64px 24px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px;
}

.brand-logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.brand-logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

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

.nav-pill-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-pill-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

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

.nav-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #20202e;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: var(--transition);
    overflow: hidden;
    padding: 0;
}

.nav-avatar-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(129, 130, 248, 0.3);
}

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

.nav-avatar-btn i {
    font-size: 16px;
    color: #cbd5e1;
}

.user-dropdown-card {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #14141e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    display: none;
    flex-direction: column;
    z-index: 200;
}

.user-dropdown-card.show {
    display: flex;
    animation: fadeInDown 0.15s ease forwards;
}

.dropdown-header-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    padding: 8px 12px 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #d1d1e0;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(129, 130, 248, 0.12);
    color: #ffffff;
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item.logout-danger {
    color: var(--accent-red);
    border-top: 1px solid var(--border-subtle);
    margin-top: 4px;
    padding-top: 10px;
}

.dropdown-item.logout-danger i {
    color: var(--accent-red);
}

.dropdown-item.logout-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ff6b6b;
}

/* ==========================================================================
   View Switching Framework
   ========================================================================== */
.view-panel {
    display: none;
}

.view-panel.active {
    display: block;
    animation: fadeIn 0.25s ease forwards;
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back Link for subviews */
.view-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.view-back-link:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

/* ==========================================================================
   VIEW 1: KONTROL PANELİ
   ========================================================================== */
.panel-top-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #ffffff;
    line-height: 1.2;
}

.panel-subtitle {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.panel-subtitle span {
    color: #f3f3f8;
    font-weight: 600;
}

.btn-settings-gear {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-settings-gear:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* User & Subscription Header Card */
.subscription-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
    align-items: center;
    box-shadow: var(--shadow-card);
    margin-bottom: 32px;
}

.user-profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.user-avatar-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

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

.user-avatar-circle i {
    font-size: 42px;
    color: #64748b;
}

.user-handle-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    word-break: break-all;
}

.subscription-right-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sub-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sub-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.status-badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-green);
}

.status-tag .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.status-update-date {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-extend-sub {
    align-self: flex-start;
    background: var(--primary);
    color: #0f0f15;
    border: none;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-extend-sub:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-download-loader {
    width: 100%;
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(129, 130, 248, 0.25);
}

.btn-download-loader:hover {
    background: #9697fb;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(129, 130, 248, 0.4);
}

/* Main Dashboard Card with 4 Tabs */
.dashboard-main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.dash-tabs-nav {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
    overflow-x: auto;
}

.dash-tab-btn {
    flex: 1;
    min-width: 140px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.dash-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}

.dash-tab-btn.active {
    color: #ffffff;
    background: var(--bg-card);
    border-bottom-color: var(--primary);
}

.dash-tab-body {
    padding: 28px;
}

.dash-tab-pane {
    display: none;
}

.dash-tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

/* Tab 1: Aboneliklerim */
.subscription-banners-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sub-banner-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 120px;
    border: 1px solid var(--border-color);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.sub-banner-card:hover {
    border-color: rgba(129, 130, 248, 0.35);
    transform: translateY(-2px);
}

.sub-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 16, 0.95) 0%, rgba(10, 10, 16, 0.8) 45%, rgba(10, 10, 16, 0.6) 100%);
    z-index: 1;
}

.sub-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sub-banner-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.btn-renew-red {
    background: #1e1e28;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-renew-red:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Tab 2: Konfigürasyon */
.config-header-row {
    margin-bottom: 24px;
}

.config-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.empty-state-box {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-muted);
    font-size: 14.5px;
}

.btn-refresh-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: #d1d1e0;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-refresh-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Tab 3: Market */
.market-filter-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.market-pill-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
    transition: var(--transition);
}

.market-pill-btn:hover {
    color: #ffffff;
}

.market-pill-btn.active {
    color: #8182f8;
}

.market-pill-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background: #8182f8;
    border-radius: 2px;
}

.market-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.market-card {
    background: #11111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.market-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.market-card.is-recommended {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, #11111a 100%);
}

.badge-recommended {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.market-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(129, 130, 248, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 16px auto;
}

.market-duration {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
}

.market-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12.5px;
    color: #cbd5e1;
    margin-bottom: 24px;
    flex: 1;
}

.market-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-features-list li i {
    color: var(--accent-green);
    font-size: 11px;
}

.market-price-tag {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    text-align: left;
}

.btn-market-buy {
    width: 100%;
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-market-buy:hover {
    background: #9697fb;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(129, 130, 248, 0.35);
}

/* Tab 4: Destek Talepleri */
.tickets-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.tickets-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.btn-new-ticket {
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-new-ticket:hover {
    background: #9697fb;
}

.tickets-info-notice {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.tickets-info-notice a {
    color: #8182f8;
    text-decoration: none;
}

/* ==========================================================================
   VIEW 2: PROFİL / HESAP AYARLARI
   ========================================================================== */
.profile-view-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.profile-avatar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-card);
    height: fit-content;
}

.profile-avatar-large {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

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

.profile-avatar-large i {
    font-size: 52px;
    color: #64748b;
}

.profile-username-tag {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.btn-upload-photo {
    width: 100%;
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-upload-photo:hover {
    background: #9697fb;
    transform: translateY(-1px);
}

/* Profile Right Card with Tabs */
.profile-main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.profile-tabs-nav {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
}

.profile-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.profile-tab-btn:hover {
    color: #ffffff;
}

.profile-tab-btn.active {
    color: #ffffff;
    background: var(--bg-card);
    border-bottom-color: var(--primary);
}

.profile-tab-body {
    padding: 32px;
}

.profile-tab-pane {
    display: none;
}

.profile-tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

.section-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.section-group-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
}

.form-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(129, 130, 248, 0.15);
}

.form-actions-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    margin-bottom: 32px;
}

.btn-save-primary {
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save-primary:hover {
    background: #9697fb;
}

/* Connected Accounts Card */
.connected-card {
    background: #11111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.connected-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.connected-icon {
    font-size: 24px;
    color: #5865f2;
}

.connected-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.connected-status {
    font-size: 12.5px;
    color: var(--text-muted);
}

.btn-connect-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Activity item */
.activity-card {
    background: #11111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.activity-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
}

.activity-title .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.activity-meta i {
    font-size: 11px;
}

.activity-time-right {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Purchases Tab */
.purchase-item-card {
    background: #11111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.purchase-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.purchase-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
}

.purchase-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.purchase-badge-pill {
    background: rgba(129, 130, 248, 0.12);
    border: 1px solid rgba(129, 130, 248, 0.3);
    color: var(--primary);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
}

.purchase-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.purchase-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.purchase-price {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.badge-status-failed {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.badge-status-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.badge-status-pending {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.empty-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 38px 20px;
    background: rgba(18, 18, 28, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin: 14px 0;
}

.empty-state-icon {
    font-size: 28px;
    color: #5d5d78;
    margin-bottom: 10px;
}

.empty-state-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.empty-state-desc {
    font-size: 12.5px;
    color: #71718c;
    max-width: 380px;
    line-height: 1.5;
}

.table-pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.page-btn.active {
    background: #8182f8;
    color: #0b0b12;
    font-weight: 700;
    border-color: #8182f8;
}

/* ==========================================================================
   VIEW 3: ŞANS ÇARKI (LUCKY WHEEL)
   ========================================================================== */
.wheel-view-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
    margin-bottom: 56px;
}

.wheel-canvas-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    background: #0d0d14;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.wheel-sound-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.wheel-sound-toggle:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.wheel-outer-stage {
    position: relative;
    width: 420px;
    height: 420px;
}

.wheel-pointer-arrow {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 22px solid #ffffff;
    z-index: 10;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

#luckyWheelCanvas {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(129, 130, 248, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.wheel-center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #8182f8;
    box-shadow: 0 0 16px rgba(129, 130, 248, 0.6);
    pointer-events: none;
    z-index: 5;
    border: 3px solid #14141e;
}

.wheel-right-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wheel-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.wheel-bag-box {
    text-align: center;
}

.wheel-bag-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(129, 130, 248, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 16px auto;
}

.wheel-bag-desc {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-wheel-packages {
    width: 100%;
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-wheel-packages:hover {
    background: #9697fb;
}

.wheel-history-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.wheel-history-empty {
    text-align: center;
    padding: 32px 10px;
    color: var(--text-muted);
    font-size: 13.5px;
}

/* Bottom Rewards Grid */
.wheel-rewards-section {
    margin-top: 40px;
}

.rewards-sec-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 4px;
}

.rewards-sec-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.wheel-rewards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.reward-item-card {
    background: #11111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: var(--transition);
}

.reward-item-card:hover {
    border-color: rgba(129, 130, 248, 0.4);
    transform: translateY(-2px);
}

.reward-item-icon {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 4px;
}

.reward-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
}

.reward-item-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   MODAL DIALOGS (Kod Kullan & Support Ticket & Checkout)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.15s ease forwards;
}

.modal-card {
    background: #14141e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: fadeInDown 0.2s ease forwards;
}

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon-title i {
    font-size: 20px;
    color: var(--primary);
}

.modal-title-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}

.btn-modal-close:hover {
    color: #ffffff;
}

.modal-desc-sub {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.btn-modal-cancel {
    background: #1a1a24;
    border: 1px solid var(--border-color);
    color: #d1d1e0;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-cancel:hover {
    background: #242434;
    color: #ffffff;
}

.btn-modal-submit {
    background: #8182f8;
    color: #0b0b12;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-submit:hover {
    background: #9697fb;
}

/* Toast Notifications */
.custom-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #161624;
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    animation: toastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .market-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    .wheel-view-grid {
        grid-template-columns: 1fr;
    }
    .wheel-rewards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .subscription-header-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .status-badge-wrap {
        align-items: center;
        width: 100%;
    }
    .profile-view-grid {
        grid-template-columns: 1fr;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .market-grid-5 {
        grid-template-columns: 1fr;
    }
    .wheel-outer-stage, #luckyWheelCanvas {
        width: 320px;
        height: 320px;
    }
}

/* ==========================================================================
   SKINCHANGER MARKETİ — Sınırsız paketi kaldırıldı, ızgara 4 karta düştü
   ========================================================================== */
.market-grid-5.is-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1040px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .market-grid-5.is-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .market-grid-5.is-four {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
    }
}

/* ==========================================================================
   DESTEK TALEPLERİ — canlı liste + talep içi sohbet
   ========================================================================== */
.tickets-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    vertical-align: middle;
}

.tickets-live-badge i {
    font-size: 6px;
    animation: npTicketPulse 2.4s ease-in-out infinite;
}

@keyframes npTicketPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* --- Talep listesi ------------------------------------------------------- */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    text-align: left;
    cursor: pointer;
    background: #11111a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 10px);
    color: inherit;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ticket-card:hover {
    border-color: rgba(129, 130, 248, 0.45);
    background: rgba(129, 130, 248, 0.06);
    transform: translateY(-1px);
}

.ticket-card.is-answered { border-color: rgba(56, 189, 248, 0.35); }
.ticket-card.is-closed { opacity: 0.62; }

.ticket-card-main { flex: 1; min-width: 0; }

.ticket-card-subject {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.ticket-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.ticket-card-arrow { color: var(--text-dim); font-size: 12px; }

.ticket-unread-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.9);
}

.ticket-status-pill {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.ticket-status-pill.is-open { background: rgba(16, 185, 129, 0.12); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.ticket-status-pill.is-answered { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.ticket-status-pill.is-closed { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border-color: rgba(148, 163, 184, 0.3); }

/* --- Talep içi sohbet --------------------------------------------------- */
.ticket-chat {
    display: none;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 12px);
    background: #0f0f17;
    overflow: hidden;
}

.ticket-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.ticket-chat-head-info { flex: 1; min-width: 0; }

.ticket-chat-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-chat-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.ticket-chat-head-actions { display: flex; align-items: center; gap: 8px; }

.ticket-chat-back {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    cursor: pointer;
}

.ticket-chat-back:hover { color: #fff; border-color: var(--border-hover); }

.ticket-chat-status {
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.ticket-chat-status.is-open { background: rgba(16, 185, 129, 0.12); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.ticket-chat-status.is-answered { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.ticket-chat-status.is-closed { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border-color: rgba(148, 163, 184, 0.3); }

.ticket-chat-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.ticket-chat-close-btn:hover { background: rgba(16, 185, 129, 0.18); }

.ticket-chat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px;
    min-height: 220px;
    max-height: 420px;
    overflow-y: auto;
}

.ticket-chat-loading {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 24px 0;
}

.ticket-msg {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
}

.ticket-msg.is-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(124, 125, 255, 0.22), rgba(99, 102, 241, 0.14));
    border: 1px solid rgba(129, 130, 248, 0.35);
    color: #eef0ff;
    border-bottom-right-radius: 5px;
}

.ticket-msg.is-admin {
    align-self: flex-start;
    background: #16161f;
    border: 1px solid var(--border-color);
    color: #dfe1f0;
    border-bottom-left-radius: 5px;
}

.ticket-msg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 11px;
}

.ticket-msg-sender { font-weight: 700; color: #fff; }
.ticket-msg.is-admin .ticket-msg-sender { color: #a5b4fc; }
.ticket-msg-time { color: var(--text-dim); }
.ticket-msg-text { word-break: break-word; }

.ticket-chat-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.ticket-chat-form textarea {
    flex: 1;
    resize: none;
    min-height: 42px;
    max-height: 130px;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 13.5px;
    color: #fff;
    background: var(--bg-input, #0f0f16);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
}

.ticket-chat-form textarea:focus { border-color: var(--border-hover); }

.ticket-chat-send {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #7c7dff 0%, #6366f1 60%, #8b5cf6 100%);
    color: #fff;
    cursor: pointer;
}

.ticket-chat-send:disabled { opacity: 0.55; cursor: default; }

/* Sohbet açıkken liste ve bilgi notu gizlenir */
#tab-tickets.is-chatting #ticketsListContainer,
#tab-tickets.is-chatting .tickets-open-note,
#tab-tickets.is-chatting .tickets-info-notice { display: none; }

@media (max-width: 640px) {
    .ticket-chat-body {
        min-height: 180px;
        max-height: 320px;
        padding: 14px 12px;
    }

    .ticket-msg { max-width: 88%; }
    .ticket-chat-head { flex-wrap: wrap; }
}

/* --- Talebe tıklayınca yazılacak yerin belli olması -------------------- */
.ticket-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #c7c8ff;
    background: rgba(129, 130, 248, 0.12);
    border: 1px solid rgba(129, 130, 248, 0.3);
    white-space: nowrap;
}

.ticket-card:hover .ticket-card-action {
    color: #fff;
    background: rgba(129, 130, 248, 0.22);
    border-color: rgba(129, 130, 248, 0.55);
}

/* Yalnızca 1 açık talep kuralı */
.tickets-open-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #cbd5e1;
    background: rgba(129, 130, 248, 0.08);
    border: 1px solid rgba(129, 130, 248, 0.25);
}

.tickets-open-note i { color: #a5b4fc; font-size: 14px; }
.tickets-open-note b { color: #fff; }

.btn-new-ticket.is-disabled,
.btn-new-ticket:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

/* --- Ek görsel (fotoğraf) yükleme -------------------------------------- */
.ticket-chat-form {
    flex-direction: column;
    align-items: stretch;
}

.ticket-chat-form-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.ticket-attach-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.ticket-attach-btn:hover {
    color: #fff;
    border-color: rgba(129, 130, 248, 0.5);
    background: rgba(129, 130, 248, 0.1);
}

.ticket-attach-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 11px;
    background: rgba(129, 130, 248, 0.08);
    border: 1px solid rgba(129, 130, 248, 0.25);
}

.ticket-attach-preview img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
}

.ticket-attach-preview span {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: #dfe1f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-attach-remove {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: 0;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    cursor: pointer;
}

.ticket-msg-attach { display: block; margin-top: 8px; }

.ticket-msg-attach img {
    display: block;
    max-width: 100%;
    max-height: 260px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .ticket-card-action { display: none; }
    .ticket-chat-form-row { flex-wrap: wrap; }
}
