/* ====================================================
   LaxiaDev PLATFORM DESIGN SYSTEM - SLICK DARK THEME
   ==================================================== */

:root {
    --bg-main: #070708;
    --bg-card: #111113;
    --bg-card-hover: #161619;
    --bg-input: #141417;
    --border-color: #1F1F24;
    --border-subtle: #2A2A30;
    
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --text-subtle: #5E5E65;
    
    --brand-blue: #3B82F6;
    --accent-green: #10B981;
    --accent-green-bg: rgba(16, 185, 129, 0.1);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

.hidden {
    display: none !important;
}

.brand-accent {
    color: var(--brand-blue);
}

/* ----------------------------------------------------
   NAVBAR
   ---------------------------------------------------- */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(7, 7, 8, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-nav-badge {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 8px;
}

/* ----------------------------------------------------
   BUTTONS
   ---------------------------------------------------- */
.btn-primary {
    background-color: var(--text-primary);
    color: #000;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #E5E5E5;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    color: var(--text-primary);
}

.btn-white-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FFFFFF;
    color: #000000;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.btn-white-pill:hover {
    background-color: #E0E0E0;
    transform: translateY(-1px);
}

.btn-subtle-pill {
    background-color: #1F1F24;
    color: #FFFFFF;
}

.btn-subtle-pill:hover {
    background-color: #2D2D35;
}

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
}

.full-width {
    width: 100%;
}

/* ----------------------------------------------------
   MAIN APP & DASHBOARD LAYOUT
   ---------------------------------------------------- */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    flex: 1;
    width: 100%;
}

/* DASHBOARD HEADER */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.user-greeting h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.account-uid-badge {
    background-color: #141417;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
}

/* TABS NAVIGATION */
.tab-navigation {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.tab-btn {
    background: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 0;
    position: relative;
    transition: color 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--text-primary);
}

/* ----------------------------------------------------
   PRODUCT CARD & SUBSCRIPTIONS
   ---------------------------------------------------- */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

/* Faded Background Logo Silhouette */
.product-card::after {
    content: 'R';
    position: absolute;
    right: 40px;
    bottom: -30px;
    font-size: 240px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-icon-box {
    width: 48px;
    height: 48px;
    background-color: #000;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: var(--text-primary);
}

.product-details h2 {
    font-size: 20px;
    font-weight: 600;
}

.link-subtle {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.link-subtle:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.subscription-date-badge {
    background-color: #18181B;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.subscription-date-badge strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* COUNTDOWN */
.countdown-area {
    margin-bottom: 28px;
}

.countdown-timer {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
}

.countdown-timer small {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 12px;
}

.countdown-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

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

/* NO SUB CARD */
.no-sub-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.no-sub-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.no-sub-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* LICENSE KEY CONTAINER */
.license-key-container {
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    background-color: rgba(17, 17, 19, 0.5);
}

.license-key-header h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.license-key-header p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 580px;
    margin: 0 auto 28px auto;
}

.key-activation-form {
    max-width: 480px;
    margin: 0 auto;
}

.key-input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 4px 6px 4px 16px;
    gap: 10px;
    transition: border-color 0.2s ease;
}

.key-input-wrapper:focus-within {
    border-color: #3F3F46;
}

.key-input-wrapper input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    flex: 1;
}

.key-input-wrapper input::placeholder {
    color: var(--text-subtle);
}

.btn-activate {
    background-color: #FFFFFF;
    color: #000000;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.btn-activate:hover {
    background-color: #E5E5E5;
}

/* ----------------------------------------------------
   ACCOUNT SETTINGS
   ---------------------------------------------------- */
.settings-header {
    margin-bottom: 24px;
}

.settings-header h2 {
    font-size: 32px;
    font-weight: 700;
}

.settings-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* SUB TABS NAVIGATION */
.sub-tab-navigation {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 28px;
}

.sub-tab-btn {
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.2s ease;
}

.sub-tab-btn:hover {
    color: var(--text-primary);
}

.sub-tab-btn.active {
    color: var(--text-primary);
    font-weight: 600;
}

.sub-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--text-primary);
}

/* SETTINGS CARD */
.settings-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.card-header-block {
    margin-bottom: 24px;
}

.card-header-block h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-header-block p {
    color: var(--text-secondary);
    font-size: 13px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-header-flex h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-header-flex p {
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-revoke-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-revoke-all:hover {
    border-color: #3F3F46;
}

/* FORMS */
.settings-form {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-dark {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-dark:focus {
    border-color: #3F3F46;
}

/* ----------------------------------------------------
   SESSIONS LIST (MATCHING SCREENSHOT 3)
   ---------------------------------------------------- */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-item {
    background-color: #0D0D0F;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-main-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-name {
    font-weight: 600;
    font-size: 14px;
}

.badge-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #1F1F24;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.badge-tag.this-device {
    background-color: var(--accent-green-bg);
    color: var(--accent-green);
}

.session-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-revoke {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-revoke:hover {
    background-color: #1F1F24;
    border-color: #3F3F46;
}

/* ----------------------------------------------------
   SECURITY TIMELINE (MATCHING SCREENSHOT 4)
   ---------------------------------------------------- */
.timeline-tree {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 20px;
}

.timeline-tree::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    background-color: #0A1410;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-green);
}

.timeline-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ----------------------------------------------------
   ADMIN PANEL & TABLES
   ---------------------------------------------------- */
.admin-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.admin-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.data-table th {
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.data-table td {
    border-bottom: 1px solid #18181B;
    padding: 12px;
    color: var(--text-primary);
}

/* ----------------------------------------------------
   LANDING PAGE & HERO
   ---------------------------------------------------- */
.landing-section {
    padding: 40px 0;
}

.hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px auto;
}

.hero-badge {
    display: inline-block;
    background-color: #18181B;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.text-white {
    color: #FFFFFF;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* PRICING */
.pricing-section, .faq-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 720px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border-color: #3F3F46;
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background-color: #FFFFFF;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

.plan-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
}

.plan-price span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

.faq-accordion {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.faq-question {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ----------------------------------------------------
   MODALS
   ---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    padding: 32px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    color: var(--text-secondary);
    font-size: 24px;
    line-height: 1;
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 13px;
}

.modal-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.modal-footer a {
    color: var(--text-primary);
    font-weight: 600;
}

/* ALERT MESSAGES */
.alert-msg {
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.alert-msg.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.alert-msg.success {
    background-color: var(--accent-green-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

/* ----------------------------------------------------
   DISCORD INTEGRATION STYLES
   ---------------------------------------------------- */
.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #5865F2;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    width: 100%;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    color: var(--text-subtle);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 12px;
}

.discord-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.discord-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.discord-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #5865F2;
}

.discord-details h4 {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discord-details p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ----------------------------------------------------
   DISCORD DM LIVE SUPPORT & TICKET HUB STYLES
   ---------------------------------------------------- */
.dc-support-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 16px;
    height: 760px;
    max-height: calc(100vh - 160px);
    min-height: 580px;
    background: #0B0C10;
    border: 1px solid #1A1D27;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

@media (max-width: 960px) {
    .dc-support-container {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }
}

/* LEFT SIDEBAR */
.dc-tickets-sidebar {
    background: #0E1017;
    border-right: 1px solid #1A1D27;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.sidebar-top-header {
    flex-shrink: 0;
    padding: 16px;
    border-bottom: 1px solid #1A1D27;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5865F2;
}

.sidebar-title h3 {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.badge-live-pulse {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-live-pulse::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.btn-create-ticket-main {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #FFFFFF;
    border: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.25);
}

.btn-create-ticket-main:hover {
    background: linear-gradient(135deg, #4752C4, #3C45A5);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.4);
}

.ticket-search-box input {
    width: 100%;
    background: #08090C;
    border: 1px solid #1E2230;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #FFFFFF;
    outline: none;
    transition: border-color 0.2s;
}

.ticket-search-box input:focus {
    border-color: #5865F2;
}

.ticket-filter-tabs {
    display: flex;
    gap: 6px;
}

.filter-pill {
    flex: 1;
    background: #13151F;
    border: 1px solid #1E2230;
    border-radius: 6px;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.filter-pill.active {
    background: #1E2235;
    color: #FFFFFF;
    border-color: #3B82F6;
}

/* SCROLL LIST */
.tickets-scroll-list {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticket-item {
    background: #11131C;
    border: 1px solid #1A1D27;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    flex-shrink: 0;
}

.ticket-item:hover {
    background: #161824;
    border-color: #2D3348;
}

.ticket-item.active {
    background: #181C2E;
    border-color: #5865F2;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.15);
}

.ticket-item-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.ticket-item-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1E2230;
}

.ticket-item-meta {
    flex: 1;
    min-width: 0;
}

.ticket-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.ticket-user-tag {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.ticket-time-ago {
    font-size: 10px;
    color: #64748B;
}

.ticket-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-snippet {
    font-size: 11px;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.ticket-mini-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ticket-mini-pill.open {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.ticket-mini-pill.closed {
    background: rgba(100, 116, 139, 0.2);
    color: #94A3B8;
}

.ticket-loading-state {
    padding: 30px 20px;
    text-align: center;
    font-size: 12px;
    color: #64748B;
}

/* RIGHT CHAT AREA */
.dc-chat-main-area {
    background: #090A0E;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.no-ticket-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.empty-icon-discord {
    color: #5865F2;
    margin-bottom: 16px;
    opacity: 0.8;
}

.no-ticket-state h3 {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.no-ticket-state p {
    font-size: 13px;
    color: #94A3B8;
    max-width: 420px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.active-ticket-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* CHAT HEADER (FIXED & NEVER MOVES) */
.chat-header-bar {
    flex-shrink: 0;
    padding: 14px 18px;
    background: #0E1017;
    border-bottom: 1px solid #1A1D27;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    z-index: 10;
}

.chat-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar-box {
    position: relative;
    width: 42px;
    height: 42px;
}

.chat-avatar-box img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5865F2;
}

.online-dot-mini {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
    border: 2px solid #0E1017;
}

.chat-user-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.chat-dc-tag {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
}

.ticket-status-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ticket-status-pill.open {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ticket-status-pill.closed {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ticket-id-tag {
    font-size: 11px;
    font-family: monospace;
    color: #64748B;
    background: #161824;
    padding: 2px 6px;
    border-radius: 4px;
}

.chat-user-subdetails {
    font-size: 11px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bullet-sep {
    color: #475569;
}

.chat-user-subdetails code {
    background: #161824;
    padding: 1px 4px;
    border-radius: 3px;
    color: #60A5FA;
}

.chat-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-chat-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger-soft {
    background: rgba(239, 68, 68, 0.12);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.25);
}

.btn-danger-soft:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-warning-soft {
    background: rgba(245, 158, 11, 0.12);
    color: #FBBF24;
    border-color: rgba(245, 158, 11, 0.25);
}

.btn-warning-soft:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.4);
}

/* MESSAGES STREAM (ONLY THIS SCROLLS) */
.chat-messages-container {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.msg-bubble-wrapper {
    display: flex;
    gap: 10px;
    max-width: 82%;
    flex-shrink: 0;
}

.msg-bubble-wrapper.user {
    align-self: flex-start;
}

.msg-bubble-wrapper.admin {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: #1E2230;
}

.msg-bubble {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
    max-width: 100%;
}

.msg-bubble-wrapper.user .msg-bubble {
    background: #161824;
    border: 1px solid #232738;
    color: #F1F5F9;
    border-bottom-left-radius: 2px;
}

.msg-bubble-wrapper.admin .msg-bubble {
    background: #1E293B;
    border: 1px solid #334155;
    color: #FFFFFF;
    border-bottom-right-radius: 2px;
}

.msg-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 11px;
}

.msg-bubble-wrapper.admin .msg-meta-row {
    justify-content: flex-end;
}

.msg-sender-name {
    font-weight: 700;
    color: #60A5FA;
}

.msg-bubble-wrapper.user .msg-sender-name {
    color: #A78BFA;
}

.msg-time {
    color: #64748B;
    font-size: 10px;
}

.msg-content-text {
    white-space: pre-wrap;
    line-height: 1.45;
}

/* ATTACHMENTS & IMAGE PREVIEWS */
.chat-attachments-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.chat-img-attachment-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2A3042;
    background: #0B0D13;
    display: inline-block;
    max-width: 280px;
    transition: all 0.2s ease;
}

.chat-img-attachment-card:hover {
    border-color: #5865F2;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.25);
    transform: scale(1.01);
}

.chat-img-attachment-card img {
    display: block;
    max-width: 100%;
    max-height: 240px;
    object-fit: cover;
    cursor: zoom-in;
}

.chat-img-caption {
    font-size: 10px;
    color: #94A3B8;
    padding: 4px 8px;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-file-attachment-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0,0,0,0.3);
    border: 1px solid #2A3042;
    color: #60A5FA;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.chat-file-attachment-card:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3B82F6;
    color: #93C5FD;
}

.msg-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    margin-top: 6px;
    padding: 2px 6px;
    border-radius: 4px;
}

.msg-delivery-badge.delivered {
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
}

.msg-delivery-badge.failed {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.msg-system-notice {
    align-self: center;
    background: rgba(30, 41, 59, 0.5);
    border: 1px dashed #334155;
    color: #94A3B8;
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 20px;
    text-align: center;
    margin: 4px 0;
}

/* QUICK TEMPLATES (FIXED) */
.quick-templates-bar {
    flex-shrink: 0;
    padding: 6px 16px;
    background: #0B0D13;
    border-top: 1px solid #161824;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
}

.templates-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    margin-right: 4px;
}

.template-chip {
    background: #141722;
    border: 1px solid #1E2232;
    border-radius: 16px;
    color: #CBD5E1;
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.template-chip:hover {
    background: #1E2335;
    color: #FFFFFF;
    border-color: #5865F2;
}

/* CHAT INPUT AREA (FIXED AT BOTTOM) */
.chat-input-wrapper {
    flex-shrink: 0;
    padding: 12px 16px;
    background: #0E1017;
    border-top: 1px solid #1A1D27;
    z-index: 10;
}

.input-actions-box {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.input-actions-box textarea {
    flex: 1;
    background: #08090C;
    border: 1px solid #1E2230;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #FFFFFF;
    outline: none;
    resize: none;
    max-height: 100px;
    min-height: 42px;
    line-height: 1.4;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input-actions-box textarea:focus {
    border-color: #5865F2;
}

.btn-send-dm {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-send-dm:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.chat-footer-hint {
    margin-top: 6px;
    font-size: 10px;
    color: #64748B;
    text-align: center;
}

/* TICKET MODAL */
.ticket-modal-card {
    max-width: 520px;
}

.modal-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

