:root {
    --bg-main: #0c0d14;
    --bg-card: #121420;
    --bg-input: #161828;
    --border-color: #1f2438;
    --accent-orange: #ff9900;
    --accent-orange-hover: #ffa726;
    --accent-cyan: #00e5ff;
    --text-white: #ffffff;
    --text-muted: #8b92b0;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 70% Responsive Desktop Layout for High-Res/24-27" Displays */
.container-70 {
    width: 70%;
    max-width: 1400px;
    min-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    .container-70 {
        width: 82%;
    }
}

@media (max-width: 1100px) {
    .container-70 {
        width: 92%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 820px) {
    .container-70 {
        width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ==========================================================================
   Navbar (Headbar) - Responsive & Overflow Protected
   ========================================================================== */
.navbar {
    background: rgba(18, 20, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-orange);
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

.logo:hover {
    color: var(--accent-orange-hover);
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), #e08500);
    color: #0c0d14 !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-orange-hover), var(--accent-orange));
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white) !important;
}

.btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange) !important;
    background: rgba(255, 153, 0, 0.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 70px 0 50px;
    text-align: center;
}

.badge-hero {
    display: inline-block;
    background: rgba(255, 153, 0, 0.12);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 153, 0, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.8px;
    max-width: 100%;
    word-break: break-word;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 18px;
    word-break: break-word;
}

.hero h1 span {
    color: var(--accent-orange);
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* ==========================================================================
   Cards & Grid Layouts
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 35px 0;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 26px;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
    word-wrap: break-word;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 153, 0, 0.4);
}

.card-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.card-badge-gold {
    background: rgba(255, 153, 0, 0.12);
    color: var(--accent-orange);
    border-color: rgba(255, 153, 0, 0.4);
}

.package-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 15px 0 10px;
}

.package-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: #cdd6f4;
}

.feature-list li::before {
    content: "✓";
    color: var(--accent-orange);
    font-weight: bold;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-box {
    max-width: 440px;
    width: 100%;
    margin: 40px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--accent-orange);
}

/* ==========================================================================
   Tables & Tabs (Horizontal Scroll Safe)
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 20px 0;
}

table.custom-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

table.custom-table th, table.custom-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 0.9rem;
}

table.custom-table th {
    background: rgba(22, 24, 40, 0.85);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 60px;
}

/* ==========================================================================
   📱 MOBILE & TABLET FULL RESPONSIVE RULES (Max Width: 820px)
   ========================================================================== */
@media (max-width: 820px) {
    .container {
        padding: 0 14px;
    }

    /* Headbar Mobile Fix */
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nav-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo {
        font-size: 1.05rem;
        max-width: 100%;
    }

    /* Horizontal smooth scrolling bar for nav links (No wrapping/cutting off) */
    .nav-links {
        display: flex;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 6px 0 4px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        scrollbar-width: none; /* Firefox */
    }

    .nav-links::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .nav-links a {
        font-size: 0.84rem;
        padding: 5px 10px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.04);
        flex-shrink: 0;
    }

    .nav-links span {
        font-size: 0.82rem;
        padding: 5px 10px;
        border-radius: 6px;
        background: rgba(255, 153, 0, 0.12);
        flex-shrink: 0;
        white-space: nowrap;
    }

    .nav-links a.btn {
        padding: 5px 12px;
        font-size: 0.82rem;
    }

    /* Hero */
    .hero {
        padding: 40px 0 30px;
    }

    .hero .btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero .btn-group .btn {
        width: 100%;
    }

    /* Grids & Cards */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card {
        padding: 20px 16px;
    }

    .card-badge {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }

    /* Form Boxes */
    .form-box {
        margin: 20px auto;
        padding: 22px 16px;
    }

    /* Admin/Customer Header Info Bars */
    .portal-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.98rem;
    }
    .hero h1 {
        font-size: 1.65rem;
    }
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   Scrollspy & Navbar Link Active States
   ========================================================================== */
.nav-links a.nav-active {
    color: var(--accent-orange) !important;
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
    border-bottom: 2px solid var(--accent-orange);
}

/* Customized Theme Buttons */
.btn-nav-register {
    background: linear-gradient(135deg, #ff9900, #d97706) !important;
    color: #0b0e14 !important;
    border-radius: 8px;
    padding: 7px 16px !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 10px rgba(255, 153, 0, 0.3);
    transition: all 0.2s ease;
}

.btn-nav-register:hover {
    background: linear-gradient(135deg, #ffa726, #ff9900) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.45);
}

.btn-nav-portal {
    background: rgba(255, 153, 0, 0.12) !important;
    border: 1px solid var(--accent-orange) !important;
    color: var(--accent-orange) !important;
    border-radius: 8px;
    padding: 7px 16px !important;
    font-weight: 800 !important;
    transition: all 0.2s ease;
}

.btn-nav-portal:hover {
    background: var(--accent-orange) !important;
    color: #0c0d14 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.35);
}

.btn-nav-admin {
    background: rgba(0, 229, 255, 0.12) !important;
    border: 1px solid var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
    border-radius: 8px;
    padding: 7px 16px !important;
    font-weight: 800 !important;
    transition: all 0.2s ease;
}

.btn-nav-admin:hover {
    background: var(--accent-cyan) !important;
    color: #0c0d14 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.35);
}

/* ==========================================================================
   Compact License Key Display (Mobile & Desktop)
   ========================================================================== */
.key-badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(18, 20, 32, 0.85);
    border: 1px solid rgba(255, 153, 0, 0.35);
    border-radius: 6px;
    padding: 3px 8px;
    font-family: Consolas, monospace;
    font-size: 0.88rem;
    font-weight: 700;
}

.key-code-text {
    color: var(--accent-orange);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.key-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
}

.key-icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 820px) {
    .key-badge-compact {
        max-width: 170px;
    }
    .key-code-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 120px;
    }
}

/* ==========================================================================
   Admin Card Symmetry & Equal Heights
   ========================================================================== */
.admin-card-sync {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.admin-grid-equal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* ==========================================================================
   Floating Toast Notifications (No Refresh Feedback)
   ========================================================================== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    background: #161828;
    border: 1px solid var(--accent-orange);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease;
}

.toast-item.toast-success {
    border-color: #10b981;
}

.toast-item.toast-error {
    border-color: #ef4444;
}

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

/* ==========================================================================
   Notification Bell & Dropdown / Badges
   ========================================================================== */
.notif-bell-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 7px 12px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.notif-bell-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 50px;
    border: 2px solid var(--bg-main);
    line-height: 1;
}

/* Accordion FAQ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: rgba(255, 153, 0, 0.35);
}

.faq-question {
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    user-select: none;
}

.faq-question:hover {
    color: var(--accent-orange);
}

.faq-answer {
    padding: 0 22px 20px 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 14px;
    display: none; /* Collapsed by default */
}

.faq-item.faq-open {
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.15);
}

.faq-item.faq-open .faq-question {
    color: var(--accent-orange);
}

/* ==========================================================================
   Custom Sleek Dark Gamer Scrollbar (No Windows Form Look)
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #090a10;
}

::-webkit-scrollbar-thumb {
    background: #1e2238;
    border-radius: 4px;
    border: 1px solid #141726;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #1e2238 #090a10;
}

/* ==========================================================================
   Admin Top Headbar Navigation & Full-Width Zero-Scrollbar Layout
   ========================================================================== */
.admin-headbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 17, 27, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.admin-headbar-inner {
    width: 70%;
    max-width: 1400px;
    min-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    .admin-headbar-inner {
        width: 82%;
    }
}

@media (max-width: 1100px) {
    .admin-headbar-inner {
        width: 92%;
        padding: 0 16px;
    }
}

@media (max-width: 820px) {
    .admin-headbar-inner {
        width: 100% !important;
        padding: 0 12px;
    }
}

.admin-headbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-headbar-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
}

.admin-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 7px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid transparent;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1.2;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    border-color: rgba(255, 153, 0, 0.25);
}

.admin-nav-item.active {
    background: rgba(255, 153, 0, 0.14);
    border-color: rgba(255, 153, 0, 0.35);
    border-bottom: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 0 12px rgba(255, 153, 0, 0.16);
}

.admin-nav-count {
    background: rgba(255, 255, 255, 0.09);
    color: #cdd6f4;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
    line-height: 1.2;
}

.admin-nav-item.active .admin-nav-count {
    background: rgba(255, 153, 0, 0.24);
    color: var(--accent-orange);
}

/* 70% Centered Layout Admin Main Container (Zero Horizontal Scrollbar on Desktop, 100% Fluid on Mobile) */
.admin-full-container {
    width: 70%;
    max-width: 1400px;
    min-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 20px 60px 20px;
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    .admin-full-container {
        width: 82%;
    }
}

@media (max-width: 1100px) {
    .admin-full-container {
        width: 92%;
        padding: 20px 16px 50px 16px;
    }
}

@media (max-width: 820px) {
    .admin-full-container {
        width: 100% !important;
        padding: 14px 12px 40px 12px;
    }
}

.admin-main-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-main-content .card {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Eliminate Horizontal Scrollbar in Admin Tables & Prevent Wrapping/Jumping */
.admin-main-content .table-responsive {
    width: 100%;
    overflow-x: visible;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin: 16px 0 0 0;
}

.admin-main-content table.custom-table {
    width: 100%;
    min-width: 0 !important;
    border-collapse: collapse;
    table-layout: auto;
}

.admin-main-content table.custom-table th,
.admin-main-content table.custom-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 0.87rem;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-main-content table.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Fluid text column that uses remaining table width without wrapping or scrolling */
.admin-cell-fluid {
    width: 100%;
    max-width: 0;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Single line truncation with hover title */
.truncate-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
    cursor: help;
}

/* Sleek Action Pill Buttons for Tables */
.action-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
}

.action-pill-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.2;
}

.action-pill-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.action-pill-cyan {
    background: rgba(0, 229, 255, 0.12);
    color: var(--accent-cyan);
    border-color: rgba(0, 229, 255, 0.25);
}
.action-pill-cyan:hover {
    background: rgba(0, 229, 255, 0.25);
}

.action-pill-orange {
    background: rgba(255, 153, 0, 0.12);
    color: var(--accent-orange);
    border-color: rgba(255, 153, 0, 0.25);
}
.action-pill-orange:hover {
    background: rgba(255, 153, 0, 0.25);
}

.action-pill-green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
}
.action-pill-green:hover {
    background: rgba(16, 185, 129, 0.25);
}

.action-pill-red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}
.action-pill-red:hover {
    background: rgba(239, 68, 68, 0.25);
}

.action-pill-gray {
    background: rgba(255, 255, 255, 0.06);
    color: #aaa;
    border-color: rgba(255, 255, 255, 0.1);
}
.action-pill-gray:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ==========================================================================
   Admin Table Action Dropdown ("Diğer" Menüsü)
   ========================================================================== */
.action-dropdown {
    position: relative;
    display: inline-block;
    text-align: left;
}

.action-dropdown:hover,
.action-dropdown.active {
    z-index: 1050;
}

.action-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 153, 0, 0.12);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 153, 0, 0.32);
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.action-dropdown-toggle:hover,
.action-dropdown:hover .action-dropdown-toggle,
.action-dropdown.active .action-dropdown-toggle {
    background: rgba(255, 153, 0, 0.24);
    border-color: rgba(255, 153, 0, 0.6);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.28);
    transform: translateY(-1px);
}

.action-dropdown-toggle svg {
    transition: transform 0.2s ease;
}

.action-dropdown:hover .action-dropdown-toggle svg,
.action-dropdown.active .action-dropdown-toggle svg {
    transform: rotate(180deg);
}

.action-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    min-width: 175px;
    background: #0f121a;
    border: 1px solid rgba(255, 153, 0, 0.35);
    border-radius: 9px;
    padding: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 153, 0, 0.12);
    z-index: 1050;
}

.action-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 0;
    right: 0;
    height: 7px;
}

.action-dropdown:hover .action-dropdown-menu,
.action-dropdown.active .action-dropdown-menu {
    display: block;
    animation: actionDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.action-dropdown-item .item-icon {
    font-size: 0.92rem;
    width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.action-dropdown-item.item-cyan:hover {
    background: rgba(0, 229, 255, 0.16);
    color: var(--accent-cyan);
}

.action-dropdown-item.item-orange:hover {
    background: rgba(255, 153, 0, 0.16);
    color: var(--accent-orange);
}

.action-dropdown-item.item-green:hover {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
}

.action-dropdown-item.item-amber:hover {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
}

.action-dropdown-item.item-red {
    color: #f87171;
}

.action-dropdown-item.item-red:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #ff8585;
}

.action-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

#licensesTable {
    width: 100%;
    table-layout: auto;
}
#licensesTable th,
#licensesTable td {
    padding: 11px 14px;
    white-space: nowrap;
    vertical-align: middle;
}
#licensesTable tbody tr:hover {
    position: relative;
    z-index: 50;
    background: rgba(255, 153, 0, 0.03);
}

/* ==========================================================================
   Homepage Social Media Contact Icons with Hover Reveal
   ========================================================================== */
.social-contact-dock {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 32px;
}

.social-contact-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.social-contact-item svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.28s ease;
}

.social-contact-item:hover {
    transform: translateY(-6px);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 12px 28px rgba(255, 153, 0, 0.22), 0 0 16px rgba(255, 153, 0, 0.15);
}

.social-contact-item.social-type-whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.22), 0 0 16px rgba(37, 211, 102, 0.15);
}

.social-contact-item.social-type-discord:hover {
    border-color: #5865f2;
    color: #5865f2;
    box-shadow: 0 12px 28px rgba(88, 101, 242, 0.25), 0 0 16px rgba(88, 101, 242, 0.18);
}

.social-contact-item.social-type-telegram:hover {
    border-color: #0088cc;
    color: #0088cc;
    box-shadow: 0 12px 28px rgba(0, 136, 204, 0.25), 0 0 16px rgba(0, 136, 204, 0.18);
}

.social-contact-item.social-type-email:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 12px 28px rgba(0, 229, 255, 0.22), 0 0 16px rgba(0, 229, 255, 0.15);
}

.social-contact-item:hover svg {
    transform: scale(1.12);
}

/* Hover Tooltip Card Showing Channel Name & Value */
.social-contact-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #161828;
    border: 1px solid var(--accent-orange);
    border-radius: 10px;
    padding: 9px 14px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    z-index: 50;
    text-align: center;
}

.social-contact-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--accent-orange) transparent transparent transparent;
}

.social-contact-item.social-type-whatsapp .social-contact-tooltip {
    border-color: #25d366;
}
.social-contact-item.social-type-whatsapp .social-contact-tooltip::after {
    border-top-color: #25d366;
}

.social-contact-item.social-type-discord .social-contact-tooltip {
    border-color: #5865f2;
}
.social-contact-item.social-type-discord .social-contact-tooltip::after {
    border-top-color: #5865f2;
}

.social-contact-item.social-type-telegram .social-contact-tooltip {
    border-color: #0088cc;
}
.social-contact-item.social-type-telegram .social-contact-tooltip::after {
    border-top-color: #0088cc;
}

.social-contact-item.social-type-email .social-contact-tooltip {
    border-color: var(--accent-cyan);
}
.social-contact-item.social-type-email .social-contact-tooltip::after {
    border-top-color: var(--accent-cyan);
}

.social-contact-item:hover .social-contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.social-tooltip-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.social-tooltip-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

/* Customer Portal Tabs */
.portal-tabs-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.portal-tab-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    text-decoration: none;
}

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

.portal-tab-btn.active {
    background: rgba(255, 153, 0, 0.15);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 0 12px rgba(255, 153, 0, 0.2);
}

/* ==========================================================================
   📱 100% CONTROLLED MOBILE & TABLET RESPONSIVE RULES (Max Width: 820px)
   ========================================================================== */
@media (max-width: 900px) {
    .admin-headbar-inner {
        width: 100% !important;
        padding: 0 12px;
    }
    .admin-full-container {
        width: 100% !important;
        padding: 16px 12px 40px 12px;
    }
    .container-70 {
        width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
    }
    .admin-headbar-top {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 0;
    }
    .admin-headbar-top .nav-links {
        justify-content: space-between;
        width: 100%;
        overflow-x: auto;
        padding: 4px 0;
    }
    .admin-headbar-menu {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 8px 0 10px 0;
        scrollbar-width: thin;
    }
    .admin-nav-item {
        flex-shrink: 0;
        padding: 7px 11px;
        font-size: 0.78rem;
    }
    .portal-tabs-nav {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 10px;
        scrollbar-width: thin;
    }
    .portal-tab-btn {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 0.82rem;
    }
    /* Ensure table containers scroll smoothly on mobile with touch support */
    .table-responsive,
    .admin-main-content .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        display: block;
        margin-top: 14px;
        border-radius: 8px;
    }
    .admin-main-content table.custom-table {
        min-width: 680px !important;
    }
    .admin-main-content table.custom-table th,
    .admin-main-content table.custom-table td {
        padding: 9px 10px;
        font-size: 0.82rem;
    }
    /* Cards and Grids collapse safely to 1 column on mobile */
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .admin-grid-equal {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .card {
        padding: 18px 14px;
    }
    /* Modal responsive fit */
    .modal-overlay {
        padding: 10px !important;
    }
    .modal-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
        border-radius: 10px !important;
    }
    /* Customer portal action buttons */
    .contact-badge-btn {
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .admin-headbar-top .logo {
        font-size: 1rem;
    }
    .action-pills {
        gap: 4px;
    }
    .action-pill-btn {
        padding: 4px 8px;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   User Guide & Spoiler & Code Box Styling
   ========================================================================== */
.guide-code-box {
    background: #090a10;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 10px;
    position: relative;
}

.guide-code-box pre {
    margin: 0;
    color: var(--accent-cyan);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.88rem;
    overflow-x: auto;
    white-space: pre-wrap;
    line-height: 1.5;
}

.guide-code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 153, 0, 0.15);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.guide-code-copy-btn:hover {
    background: var(--accent-orange);
    color: #090a10;
}

.guide-spoiler {
    margin-top: 10px;
    border: 1px dashed rgba(255, 153, 0, 0.35);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 153, 0, 0.02);
}

.guide-spoiler-header {
    padding: 10px 14px;
    background: rgba(255, 153, 0, 0.08);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: bold;
    color: var(--accent-orange);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s;
}

.guide-spoiler-header:hover {
    background: rgba(255, 153, 0, 0.14);
}

.guide-spoiler-content {
    display: none;
    padding: 12px 14px;
    border-top: 1px dashed rgba(255, 153, 0, 0.2);
}

/* ==========================================
   ACTION DROPDOWN (DIĞER MENÜSÜ - SIEGER DARK)
   ========================================== */
.custom-table td:last-child {
    overflow: visible !important;
}

.action-dropdown {
    position: relative;
    display: inline-block;
    text-align: left;
}

.action-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #161828;
    color: #e2e8f0;
    border: 1px solid rgba(255, 153, 0, 0.4);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    white-space: nowrap;
}

.action-dropdown-toggle:hover,
.action-dropdown.active .action-dropdown-toggle {
    background: rgba(255, 153, 0, 0.15);
    border-color: var(--accent-orange);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 153, 0, 0.25);
}

.action-dropdown-toggle svg {
    transition: transform 0.2s ease;
    color: var(--accent-orange);
}

.action-dropdown.active .action-dropdown-toggle svg {
    transform: rotate(180deg);
}

.action-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 165px;
    background: #141624;
    border: 1px solid rgba(255, 153, 0, 0.35);
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 9999;
    padding: 6px;
    backdrop-filter: blur(12px);
}

.action-dropdown:hover .action-dropdown-menu,
.action-dropdown.active .action-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: fadeInDropdown 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-4px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.action-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
}

.action-dropdown-item .item-icon {
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
}

.action-dropdown-item.item-cyan:hover {
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-cyan);
}

.action-dropdown-item.item-green:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.action-dropdown-item.item-orange:hover {
    background: rgba(255, 153, 0, 0.15);
    color: var(--accent-orange);
}

.action-dropdown-item.item-amber:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.action-dropdown-item.item-red {
    color: #f87171;
}

.action-dropdown-item.item-red:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.action-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}



