@charset "UTF-8";
/*!
 * theme.de Custom Theme Stylesheet for WHMCS Twenty-One
 * Matches theme.de Customer Panel Design System (Dashboard, Services, Service Details, Settings)
 */

/* ==========================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* theme Corporate Blue Palette */
    --theme-primary: #005489;
    --theme-primary-secondary: #005489;
    --theme-primary-hover: #036daf;
    --theme-primary-dark: #00385a;
    --theme-primary-darker: #1e3a8a;
    --theme-primary-light: #eff6ff;
    --theme-primary-border: #dbeafe;
    --theme-primary-text: #bfdbfe;
    --theme-primary-text-muted: #93c5fd;

    /* Backgrounds & Canvas */
    --theme-bg-body: #f9fafb;
    --theme-bg-surface: #ffffff;
    --theme-bg-subtle: #f3f4f6;
    --theme-border-subtle: #f3f4f6;
    --theme-border-default: #e5e7eb;
    --theme-border-hover: #d1d5db;

    /* Typography Colors */
    --theme-text-main: #111827;
    --theme-text-secondary: #374151;
    --theme-text-muted: #6b7280;
    --theme-text-light: #9ca3af;

    /* Status & Alerts */
    --theme-status-success-bg: #dcfce7;
    --theme-status-success-text: #16a34a;
    --theme-status-success-dark: #15803d;

    --theme-status-warning-bg: #fef9c3;
    --theme-status-warning-text: #ca8a04;

    --theme-status-danger-bg: #fee2e2;
    --theme-status-danger-text: #dc2626;
    --theme-status-danger-badge: #ef4444;

    /* Layout Metrics */
    --theme-sidebar-width: 16rem;
    --theme-topbar-height: 3.5rem;
    --theme-radius-sm: 0.375rem;
    --theme-radius-md: 0.5rem;
    --theme-radius-lg: 0.75rem;
    --theme-radius-full: 9999px;
    --theme-shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --theme-shadow-dropdown: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Fonts */
    --theme-font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --theme-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   2. GLOBAL RESETS & BASE STYLES
   ========================================================================== */
html, body {
    font-family: var(--theme-font-sans);
    background-color: var(--theme-bg-body) !important;
    color: var(--theme-text-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--theme-primary);
    text-decoration: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
a:hover {
    color: var(--theme-primary-hover);
    text-decoration: none;
}

/* ==========================================================================
   3. APP SHELL & LAYOUT ARCHITECTURE
   ========================================================================== */
.theme-app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--theme-bg-body);
}

/* Fixed Left Sidebar (Desktop) */
.theme-sidebar {
    width: var(--theme-sidebar-width);
    background-color: var(--theme-primary-secondary);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-sidebar::-webkit-scrollbar {
    width: 5px;
}
.theme-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Sidebar Brand / Logo Header */
.theme-sidebar-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1rem 0.75rem 1rem;
    flex-shrink: 0;
}
.theme-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}
.theme-sidebar-brand:hover {
    color: #ffffff;
}
.theme-sidebar-brand img {
    height: 2rem;
    width: auto;
}

/* Sidebar In-Menu Search */
.theme-sidebar-search {
    padding: 0 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
.theme-sidebar-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}
.theme-sidebar-search-icon {
    position: absolute;
    left: 0.625rem;
    color: var(--theme-primary-text-muted);
    font-size: 0.875rem;
    pointer-events: none;
}
.theme-sidebar-search-input {
    width: 100%;
    background-color: var(--theme-primary-hover);
    border: 1px solid transparent;
    border-radius: var(--theme-radius-sm);
    padding: 0.4rem 0.75rem 0.4rem 2rem;
    font-size: 0.8125rem;
    color: #ffffff;
    outline: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}
.theme-sidebar-search-input::placeholder {
    color: var(--theme-primary-text-muted);
}
.theme-sidebar-search-input:focus {
    background-color: var(--theme-primary-dark);
    box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.4);
}

/* Sidebar Navigation Items */
.theme-sidebar-nav {
    flex: 1 1 auto;
    padding: 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.theme-nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.625rem;
    color: var(--theme-primary-text);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--theme-radius-sm);
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    position: relative;
}
.theme-nav-link:hover {
    background-color: var(--theme-primary-dark);
    color: #ffffff;
}
.theme-nav-link.active {
    background-color: var(--theme-primary-dark);
    color: #ffffff;
    font-weight: 600;
}
.theme-nav-icon {
    width: 1.5rem;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 1rem;
    color: var(--theme-primary-text);
    flex-shrink: 0;
}
.theme-nav-link:hover .theme-nav-icon,
.theme-nav-link.active .theme-nav-icon {
    color: #ffffff;
}

/* Sidebar Collapsible / Disclosure Menus */
.theme-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.theme-nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.625rem;
    color: var(--theme-primary-text);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--theme-radius-sm);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
.theme-nav-group-toggle:hover {
    background-color: var(--theme-primary-dark);
    color: #ffffff;
}
.theme-nav-group-toggle[aria-expanded="true"] {
    background-color: var(--theme-primary-dark);
    color: #ffffff;
}
.theme-nav-group-toggle .chevron-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}
.theme-nav-group-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(90deg);
}
.theme-nav-subitems {
    padding-left: 2.25rem;
    padding-top: 0.125rem;
    padding-bottom: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.theme-nav-sublink {
    display: block;
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--theme-primary-text);
    border-radius: var(--theme-radius-sm);
    transition: color 0.15s, background-color 0.15s;
}
.theme-nav-sublink:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}
.theme-nav-sublink.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Sidebar Secondary / Bottom Links */
.theme-sidebar-footer {
    margin-top: auto;
    padding: 1.5rem 0.5rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Sidebar Backdrop & Toggle */
.theme-sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1025;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.theme-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767.98px) {
    .theme-sidebar {
        transform: translateX(-100%);
    }
    .theme-sidebar.show {
        transform: translateX(0);
    }
}

/* ==========================================================================
   4. MAIN CONTENT AREA & TOPBAR
   ========================================================================== */
.theme-main-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    background-color: var(--theme-bg-body);
}

@media (min-width: 768px) {
    .theme-main-container {
        padding-left: var(--theme-sidebar-width);
    }
}

/* theme Topbar */
.theme-topbar {
    height: var(--theme-topbar-height);
    background-color: var(--theme-bg-surface);
    border-bottom: 1px solid var(--theme-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Topbar Left: Breadcrumb */
.theme-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.theme-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--theme-radius-sm);
    color: var(--theme-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
}
.theme-mobile-toggle:hover {
    background-color: var(--theme-bg-subtle);
    color: var(--theme-text-main);
}
@media (min-width: 768px) {
    .theme-mobile-toggle {
        display: none;
    }
}

.theme-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--theme-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.theme-breadcrumb a {
    color: var(--theme-text-muted);
    display: inline-flex;
    align-items: center;
}
.theme-breadcrumb a:hover {
    color: var(--theme-text-main);
}
.theme-breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--theme-text-light);
    font-size: 0.75rem;
}
.theme-breadcrumb-current {
    color: var(--theme-text-secondary);
    font-weight: 500;
}

/* Topbar Right: Account & Action Tools */
.theme-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Accountbar Button */
.theme-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--theme-radius-md);
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease;
}
.theme-account-btn:hover {
    background-color: #ffffff;
    border-color: var(--theme-border-hover);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.theme-account-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--theme-radius-full);
    background: linear-gradient(135deg, #3b82f6, #036daf);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.theme-account-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.theme-account-funds {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--theme-status-success-dark);
}

/* Account Dropdown Menu */
.theme-account-dropdown {
    min-width: 18rem;
    border-radius: var(--theme-radius-md);
    border: 1px solid var(--theme-border-default);
    box-shadow: var(--theme-shadow-dropdown);
    padding: 0.5rem 0;
    margin-top: 0.375rem;
}
.theme-account-dropdown-header {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--theme-border-subtle);
    font-weight: 600;
    color: var(--theme-text-main);
    font-size: 0.875rem;
}
.theme-account-dropdown-stats {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--theme-border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.theme-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}
.theme-stat-label {
    color: var(--theme-text-muted);
}
.theme-stat-val {
    font-weight: 600;
}
.theme-stat-pin {
    font-family: var(--theme-font-mono);
    color: var(--theme-text-secondary);
}

.theme-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    transition: background-color 0.15s;
}
.theme-dropdown-item:hover {
    background-color: var(--theme-bg-subtle);
    color: var(--theme-text-main);
}
.theme-dropdown-item.danger-link {
    color: var(--theme-status-danger-text);
}
.theme-dropdown-item.danger-link:hover {
    background-color: var(--theme-status-danger-bg);
}

/* Notification Bell */
.theme-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.5rem;
    border-radius: var(--theme-radius-sm);
    background-color: #fefce8;
    color: #ca8a04;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s;
}
.theme-bell-btn:hover {
    background-color: #fef9c3;
    color: #a16207;
}
.theme-bell-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background-color: var(--theme-status-danger-badge);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 1rem;
    height: 1rem;
    border-radius: var(--theme-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
}

/* Funds Quick Button */
.theme-funds-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: var(--theme-radius-sm);
    background-color: var(--theme-primary-light);
    color: var(--theme-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s;
}
.theme-funds-btn:hover {
    background-color: var(--theme-primary-border);
    color: var(--theme-primary-hover);
}

/* Divider in Topbar */
.theme-topbar-divider {
    height: 1.25rem;
    width: 1px;
    background-color: var(--theme-border-default);
}

/* Main Body Padded Content Wrapper */
.theme-content-body {
    flex: 1 1 auto;
    padding: 1.5rem;
    width: 100%;
}
@media (max-width: 640px) {
    .theme-content-body {
        padding: 1rem 0.75rem;
    }
}

/* ==========================================================================
   5. DASHBOARD SPECIFIC COMPONENTS (dashboard.png)
   ========================================================================== */
/* Feedback Box Banner */
.theme-feedback-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--theme-radius-md);
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.5rem;
}
.theme-feedback-heart {
    width: 2rem;
    height: 2rem;
    border-radius: var(--theme-radius-full);
    background-color: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin-right: 0.875rem;
    flex-shrink: 0;
}
.theme-feedback-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 0.125rem;
}
.theme-feedback-desc {
    font-size: 0.75rem;
    color: #15803d;
}

/* Main Welcome & Metrics Card */
.theme-welcome-card {
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-default);
    border-radius: var(--theme-radius-md);
    box-shadow: var(--theme-shadow-card);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.theme-welcome-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.theme-welcome-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-main);
    margin: 0 0 0.25rem 0;
}
.theme-welcome-subtitle {
    font-size: 0.8125rem;
    color: var(--theme-text-muted);
    margin: 0;
}
.theme-welcome-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fee2e2;
    color: #dc2626;
    padding: 0.375rem 0.75rem;
    border-radius: var(--theme-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Welcome Card 4-Column Stats Row */
.theme-welcome-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--theme-border-default);
}
@media (min-width: 992px) {
    .theme-welcome-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}
.theme-welcome-stat-col {
    padding: 1.25rem 1.5rem;
    border-right: 1px solid var(--theme-border-default);
    display: flex;
    flex-direction: column;
}
.theme-welcome-stat-col:last-child {
    border-right: none;
}
@media (max-width: 991px) {
    .theme-welcome-stat-col:nth-child(2) {
        border-right: none;
    }
    .theme-welcome-stat-col:nth-child(3),
    .theme-welcome-stat-col:nth-child(4) {
        border-top: 1px solid var(--theme-border-default);
    }
}
.theme-stat-label-upper {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.theme-stat-big-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.theme-stat-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--theme-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.theme-stat-link:hover {
    color: var(--theme-primary-hover);
}

/* Service Item Row inside Card */
.theme-service-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--theme-border-subtle);
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.theme-service-list-item:last-child {
    border-bottom: none;
}
.theme-service-list-item:hover {
    background-color: var(--theme-bg-subtle);
    text-decoration: none;
}
.theme-service-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--theme-radius-full);
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.theme-service-dot.active { background-color: #16a34a; }
.theme-service-dot.pending { background-color: #ca8a04; }
.theme-service-dot.suspended { background-color: #dc2626; }

.theme-service-main-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-text-main);
}
.theme-service-sub-name {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
}

/* Quick Actions List */
.theme-quick-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--theme-text-secondary);
    font-size: 0.800rem;
    font-weight: 500;
    border-bottom: 1px solid var(--theme-border-subtle);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.theme-quick-action-link:last-child {
    border-bottom: none;
}
.theme-quick-action-link:hover {
    background-color: var(--theme-bg-subtle);
    color: var(--theme-primary);
    text-decoration: none;
}
.theme-quick-action-icon {
    width: 1.25rem;
    text-align: center;
    color: var(--theme-primary);
}

/* Promo Card Banner (Turbo vServer in dashboard.png) */
.theme-promo-card {
    background: linear-gradient(135deg, #036daf 0%, #00537a 100%);
    border-radius: var(--theme-radius-md);
    padding: 1.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}
.theme-promo-icon-bg {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--theme-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.theme-promo-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.theme-promo-desc {
    font-size: 0.8125rem;
    color: #bfdbfe;
    margin-bottom: 1rem;
}
.theme-promo-btn {
    background-color: #ffffff;
    color: #036daf !important;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--theme-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.theme-promo-btn:hover {
    background-color: #eff6ff;
    color: #1d4ed8 !important;
}

/* ==========================================================================
   6. INNER PAGE 2-COLUMN SUBNAV (services-content.png, settings.png)
   ========================================================================== */
.theme-inner-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 992px) {
    .theme-inner-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.theme-inner-sidebar {
    width: 100%;
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-default);
    border-radius: var(--theme-radius-md);
    box-shadow: var(--theme-shadow-card);
    padding: 0.75rem;
}
@media (min-width: 992px) {
    .theme-inner-sidebar {
        width: 16rem;
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--theme-topbar-height) + 1.5rem);
    }
}

.theme-inner-main {
    flex: 1 1 auto;
    min-width: 0;
}

.theme-subnav-group-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-light);
    padding: 0.5rem 0.75rem 0.25rem 0.75rem;
}

.theme-subnav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    border-radius: var(--theme-radius-sm);
    transition: background-color 0.15s, color 0.15s;
}
.theme-subnav-link:hover {
    background-color: var(--theme-bg-subtle);
    color: var(--theme-text-main);
}
.theme-subnav-link.active {
    background-color: var(--theme-primary-light);
    color: var(--theme-primary);
    font-weight: 600;
}
.theme-subnav-link i {
    font-size: 0.875rem;
    width: 1.125rem;
    text-align: center;
    color: var(--theme-text-muted);
}
.theme-subnav-link.active i {
    color: var(--theme-primary);
}

/* Strip Banner for Service Details Header (services-content.png) */
.theme-service-header-strip {
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-default);
    border-radius: var(--theme-radius-md);
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    color: var(--theme-text-muted);
}
.theme-service-header-name {
    font-weight: 700;
    color: var(--theme-text-main);
    font-size: 0.9375rem;
}

/* ==========================================================================
   7. CARDS, TABLES, FORMS & BADGES
   ========================================================================== */
.card, .panel {
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-default) !important;
    border-radius: var(--theme-radius-md) !important;
    box-shadow: var(--theme-shadow-card);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header, .panel-heading {
    background-color: var(--theme-primary-light) !important;
    border-bottom: 1px solid var(--theme-primary-border) !important;
    padding: 0.875rem 1.25rem;
    color: var(--theme-text-main) !important;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title, .panel-title {
    margin: 0;
    font-size: 0.9999rem !important;
    font-weight: 600;
    color: var(--theme-text-main);
}

.card-body, .panel-body {
    padding: 1.25rem;
    color: var(--theme-text-secondary);
}

.card-footer, .panel-footer {
    background-color: var(--theme-bg-surface) !important;
    border-top: 1px solid var(--theme-border-subtle) !important;
    padding: 0.75rem 1.25rem;
}

.table-container {
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-default);
    border-radius: var(--theme-radius-md);
    overflow: hidden;
    box-shadow: var(--theme-shadow-card);
    margin-bottom: 1.5rem;
}

.table-header-bar {
    background-color: var(--theme-primary-light);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--theme-primary-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.table-header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--theme-text-main);
    margin: 0;
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: var(--theme-text-secondary);
    border-collapse: collapse;
}

.table thead th {
    background-color: var(--theme-primary-light) !important;
    color: var(--theme-text-main) !important;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--theme-primary-border) !important;
    border-top: none !important;
    vertical-align: middle;
}

.table tbody tr:nth-of-type(odd) { background-color: #ffffff; }
.table tbody tr:nth-of-type(even) { background-color: var(--theme-bg-body); }
.table tbody tr:hover { background-color: #f0fdf4 !important; }

.table tbody td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    border-top: 1px solid var(--theme-border-subtle);
    vertical-align: middle;
}

/* Badges */
.badge, .label {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--theme-radius-sm);
    line-height: 1;
}

.badge-success, .label-success, .status-active, .status-paid {
    background-color: var(--theme-status-success-bg) !important;
    color: var(--theme-status-success-text) !important;
}
.badge-warning, .label-warning, .status-pending {
    background-color: var(--theme-status-warning-bg) !important;
    color: var(--theme-status-warning-text) !important;
}
.badge-danger, .label-danger, .status-unpaid, .status-suspended, .status-cancelled, .status-terminated {
    background-color: var(--theme-status-danger-bg) !important;
    color: var(--theme-status-danger-text) !important;
}
.badge-info, .label-info, .badge-primary {
    background-color: var(--theme-primary-light) !important;
    color: var(--theme-primary) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #ffffff !important;
}
.btn-primary:hover {
    background-color: var(--theme-primary-hover) !important;
    border-color: var(--theme-primary-hover) !important;
}

.btn-action-pdf {
    background-color: var(--theme-primary-light);
    color: var(--theme-primary);
    border: 1px solid var(--theme-primary-border);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--theme-radius-sm);
}
.btn-action-pdf:hover {
    background-color: #dbeafe;
    color: var(--theme-primary-hover);
}

.theme-footer {
    background-color: var(--theme-bg-surface);
    border-top: 1px solid var(--theme-border-subtle);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--theme-text-muted);
}
.theme-footer a {
    color: var(--theme-text-muted);
    margin-left: 1rem;
}
.theme-footer a:hover {
    color: var(--theme-text-main);
}

/* ==========================================================================
   9. INNER SIDEBAR FIX — theme-inner-sidebar wrapping WHMCS sidebar.tpl
   ========================================================================== */
.theme-inner-sidebar {
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-default);
    border-radius: var(--theme-radius-md);
    box-shadow: var(--theme-shadow-card);
    padding: 0.5rem;
}

/* Make inner layout use flexbox on lg+ */
@media (min-width: 992px) {
    .row:has(.theme-inner-sidebar) {
        display: flex;
        align-items: flex-start;
    }
    .theme-inner-sidebar {
        position: sticky;
        top: calc(var(--theme-topbar-height) + 1.5rem);
    }
}

/* ==========================================================================
   10. FORM CONTROLS — theme clean input style
   ========================================================================== */
.form-control {
    border-color: var(--theme-border-default);
    border-radius: var(--theme-radius-sm);
    font-size: 0.875rem;
    color: var(--theme-text-main);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}
.custom-select {
    border-color: var(--theme-border-default);
    border-radius: var(--theme-radius-sm);
    font-size: 0.875rem;
    color: var(--theme-text-main);
}
.custom-select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.input-group-text {
    background-color: #ffffff;
    border-color: var(--theme-border-default);
    color: var(--theme-text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   11. MAIN-BODY LAYOUT — Remove padding from section when logged in
   ========================================================================== */
section#main-body.theme-content-body {
    padding: 1.5rem;
}
section#main-body.theme-content-body > .row {
    margin: 0;
}
section#main-body.theme-content-body > .row > .col-12,
section#main-body.theme-content-body > .row > .primary-content {
    padding-left: 0;
    padding-right: 0;
}
@media (max-width: 640px) {
    section#main-body.theme-content-body {
        padding: 1rem 0.75rem;
    }
}

/* ==========================================================================
   12. WHMCS DATATABLE OVERRIDES
   ========================================================================== */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--theme-border-default);
    border-radius: var(--theme-radius-sm);
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    font-size: 0.8125rem;
    color: var(--theme-text-muted);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--theme-primary) !important;
    color: #ffffff !important;
    border-color: var(--theme-primary) !important;
    border-radius: var(--theme-radius-sm) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--theme-primary-light) !important;
    color: var(--theme-primary) !important;
    border-color: var(--theme-primary-border) !important;
    border-radius: var(--theme-radius-sm) !important;
}

/* ==========================================================================
   13. WHMCS ALERT OVERRIDES
   ========================================================================== */
.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}
.alert-danger, .alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
.alert-warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
.alert-info {
    background-color: var(--theme-primary-light);
    border-color: var(--theme-primary-border);
    color: var(--theme-primary-dark);
}
.alert {
    border-radius: var(--theme-radius-md);
    font-size: 0.875rem;
}

/* ---- Services Page ---- */
.theme-svc-toolbar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.theme-svc-search {
    flex: 1 1 200px;
    min-width: 160px;
    max-width: 340px;
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.35rem 0.75rem;
    gap: 0.5rem;
}
.theme-svc-search i { color: #9ca3af; font-size: 0.85rem; }
.theme-svc-search input {
    border: none; background: transparent; outline: none;
    font-size: 0.875rem; color: #374151; width: 100%;
}
.theme-svc-search input::placeholder { color: #9ca3af; }
.theme-filter-pills { display: flex; gap: 0.375rem; }
.theme-filter-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.275rem 0.75rem; border-radius: 9999px;
    font-size: 0.8125rem; font-weight: 500; cursor: pointer;
    border: 1px solid #e5e7eb; background: #fff; color: #374151;
    white-space: nowrap; transition: all 0.12s;
    line-height: 1.4;
}
.theme-filter-btn:hover { border-color: #036daf; color: #036daf; background: #eff6ff; }
.theme-filter-btn.theme-filter-active {
    background: #eff6ff; border-color: #036daf; color: #036daf;
}
.theme-filter-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; display: inline-block; flex-shrink: 0;
}
.theme-svc-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }

/* Sort dropdown */
.theme-sort-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.75rem; border: 1px solid #e5e7eb;
    border-radius: 0.375rem; background: #fff; font-size: 0.8125rem;
    color: #374151; cursor: pointer; white-space: nowrap;
}
.theme-sort-btn:hover { border-color: #036daf; color: #036daf; }

/* Table overrides to ensure WHMCS DataTables works properly */
.table-container {
    background: transparent;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}
table.theme-svc-table {
    margin-bottom: 0 !important;
    border: none;
    border-collapse: collapse;
}
table.theme-svc-table thead th {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #9ca3af;
    padding: 0.625rem 1rem; background: #fff;
    border-bottom: 1px solid #f3f4f6; border-top: none;
    white-space: nowrap;
}
table.theme-svc-table tbody tr {
    background: #fff;
    border-bottom: 1px solid #f9fafb;
    cursor: pointer;
    transition: background 0.1s;
}
table.theme-svc-table tbody tr:last-child { border-bottom: none; }
table.theme-svc-table tbody tr:hover { background: #f8faff; }
table.theme-svc-table td { padding: 0.875rem 1rem; vertical-align: middle; border-top: none; }

/* Hide default DataTable elements */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: none !important;
}

/* Hide sorting icons from DataTables */
table.dataTable thead .sorting, 
table.dataTable thead .sorting_asc, 
table.dataTable thead .sorting_desc {
    background-image: none !important;
}

/* Pagination override */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    gap: 0.25rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    border-radius: 0.375rem !important;
    border: 1px solid transparent !important;
    font-size: 0.8125rem !important;
    color: #374151 !important;
    cursor: pointer;
    background: #fff !important;
    box-shadow: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eff6ff !important;
    color: #036daf !important;
    border-color: #dbeafe !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #036daf !important;
    color: #fff !important;
    border-color: #036daf !important;
    font-weight: 700 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: transparent !important;
    color: #9ca3af !important;
}

.theme-drag-dots { color: #d1d5db; font-size: 0.8rem; padding-right: 0.25rem; cursor: grab; }
.theme-svc-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.theme-svc-dot.active { background: #22c55e; }
.theme-svc-dot.pending { background: #f59e0b; }
.theme-svc-dot.suspended { background: #ef4444; }
.theme-svc-dot.terminated { background: #9ca3af; }

.theme-svc-name { font-weight: 600; font-size: 0.9rem; color: #111827; }
.theme-svc-sub { font-size: 0.78rem; color: #6b7280; margin-top: 0.1rem; }
.theme-svc-ip { font-size: 0.875rem; color: #374151; font-family: monospace; }
.theme-svc-expires-date { font-size: 0.875rem; color: #374151; font-weight: 500; }
.theme-svc-expires-rel { font-size: 0.78rem; color: #f59e0b; }
.theme-svc-chevron { color: #d1d5db; font-size: 0.8125rem; }

.theme-svc-empty { padding: 3rem 1rem; text-align: center; }
.theme-svc-empty i { font-size: 2.5rem; color: #d1d5db; margin-bottom: 0.75rem; }
.theme-svc-empty p { color: #6b7280; font-size: 0.9rem; }


/* ==========================================================================
   2. EXTRACTED SERVICES CSS (clientareaproducts.tpl)
   ========================================================================== */
.theme-svc-toolbar {
    background: transparent;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.theme-svc-search {
    flex: 1 1 200px;
    min-width: 160px;
    max-width: 340px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.35rem 0.75rem;
    gap: 0.5rem;
}
.theme-svc-search i { color: #9ca3af; font-size: 0.85rem; }
.theme-svc-search input {
    border: none; background: transparent; outline: none;
    font-size: 0.875rem; color: #374151; width: 100%;
}
.theme-svc-search input::placeholder { color: #9ca3af; }
.theme-filter-pills { display: flex; gap: 0.375rem; }
.theme-filter-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.275rem 0.75rem; border-radius: 9999px;
    font-size: 0.8125rem; font-weight: 500; cursor: pointer;
    border: 1px solid #e5e7eb; background: #fff; color: #374151;
    white-space: nowrap; transition: all 0.12s;
    line-height: 1.4;
}
.theme-filter-btn:hover { border-color: #036daf; color: #036daf; background: #eff6ff; }
.theme-filter-btn.theme-filter-active {
    background: #eff6ff; border-color: #036daf; color: #036daf;
}
.theme-filter-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; display: inline-block; flex-shrink: 0;
}
.theme-svc-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }

/* Sort dropdown */
.theme-sort-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.75rem; border: 1px solid #e5e7eb;
    border-radius: 0.375rem; background: #fff; font-size: 0.8125rem;
    color: #374151; cursor: pointer; white-space: nowrap;
}
.theme-sort-btn:hover { border-color: #036daf; color: #036daf; }

/* Table overrides */
.table-container {
    background: transparent;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}
table.theme-svc-table {
    margin-bottom: 0 !important;
    border: none;
    border-collapse: collapse;
}
table.theme-svc-table thead th {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #9ca3af;
    padding: 0.625rem 0.5rem; background: transparent;
    border-bottom: 1px solid #e5e7eb; border-top: none;
    white-space: nowrap;
}
table.theme-svc-table tbody tr {
    background: transparent;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.1s;
}
table.theme-svc-table tbody tr:last-child { border-bottom: 1px solid #e5e7eb; }
table.theme-svc-table tbody tr:hover { background: #f8faff; }
table.theme-svc-table td { padding: 0.875rem 0.5rem; vertical-align: middle; border-top: none; }

/* Hide default DataTable elements */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: none !important;
}
table.dataTable thead .sorting, 
table.dataTable thead .sorting_asc, 
table.dataTable thead .sorting_desc {
    background-image: none !important;
}

/* Pagination override */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    gap: 0.25rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    border-radius: 0.375rem !important;
    border: 1px solid transparent !important;
    font-size: 0.8125rem !important;
    color: #374151 !important;
    cursor: pointer;
    background: transparent !important;
    box-shadow: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eff6ff !important;
    color: #036daf !important;
    border-color: #dbeafe !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #036daf !important;
    color: #fff !important;
    border-color: #036daf !important;
    font-weight: 700 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: transparent !important;
    color: #9ca3af !important;
}

.theme-drag-dots { color: #d1d5db; font-size: 0.8rem; padding-right: 0.25rem; cursor: grab; }
.theme-svc-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.theme-svc-dot.active { background: #22c55e; }
.theme-svc-dot.pending { background: #f59e0b; }
.theme-svc-dot.suspended { background: #ef4444; }
.theme-svc-dot.terminated { background: #9ca3af; }

.theme-svc-name { font-weight: 600; font-size: 0.9rem; color: #111827; }
.theme-svc-sub { font-size: 0.78rem; color: #6b7280; margin-top: 0.1rem; }
.theme-svc-ip { font-size: 0.875rem; color: #374151; font-family: monospace; }
.theme-svc-expires-date { font-size: 0.875rem; color: #374151; font-weight: 500; }
.theme-svc-expires-rel { font-size: 0.78rem; color: #f59e0b; }
.theme-svc-chevron { color: #d1d5db; font-size: 0.8125rem; }

.theme-svc-empty { padding: 3rem 1rem; text-align: center; }
.theme-svc-empty i { font-size: 2.5rem; color: #d1d5db; margin-bottom: 0.75rem; }
.theme-svc-empty p { color: #6b7280; font-size: 0.9rem; }

/* ==========================================================================
   3. EXTRACTED DOMAINS CSS (clientareadomains.tpl)
   ========================================================================== */
.theme-dom-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.theme-dom-header-left {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}
.theme-dom-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.theme-dom-icon i { color: #036daf; font-size: 1.125rem; }
.theme-dom-title { font-size: 1.25rem; font-weight: 700; color: #111827; margin: 0 0 0.2rem; }
.theme-dom-subtitle { font-size: 0.8125rem; color: #6b7280; margin: 0; }

.theme-dom-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}
.theme-dom-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.12s;
    text-decoration: none !important;
}
.theme-dom-tab:hover { color: #036daf; }
.theme-dom-tab.active { color: #036daf; border-bottom-color: #036daf; }
.theme-dom-tab-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #374151;
    border-radius: 9999px;
    padding: 0.05rem 0.4rem;
}
.theme-dom-tab.active .theme-dom-tab-badge {
    background: #dbeafe;
    color: #036daf;
}

/* Table overrides */
table.theme-dom-table {
    margin-bottom: 0 !important;
    border: none;
    border-collapse: collapse;
}
table.theme-dom-table thead th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 0.625rem 0.5rem;
    background: transparent;
    border-bottom: 1px solid #e5e7eb; border-top: none;
    white-space: nowrap;
}
table.theme-dom-table tbody tr {
    background: transparent;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.1s;
}
table.theme-dom-table tbody tr:last-child { border-bottom: 1px solid #e5e7eb; }
table.theme-dom-table tbody tr:hover { background: #f8faff; }
table.theme-dom-table td { padding: 0.875rem 0.5rem; vertical-align: middle; font-size: 0.875rem; border-top: none; }

.theme-dom-name { font-weight: 600; color: #036daf; }
.theme-dom-name:hover { text-decoration: underline; }
.theme-dom-autorenew { font-size: 0.78rem; color: #6b7280; margin-top: 0.15rem; }
.theme-dom-date { color: #374151; }

.theme-dom-empty {
    padding: 4rem 1rem;
    text-align: center;
}
.theme-dom-empty-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.theme-dom-empty-icon i { font-size: 1.5rem; color: #9ca3af; }
.theme-dom-empty p { color: #6b7280; font-size: 0.9rem; margin-bottom: 1.25rem; }

.theme-dom-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.theme-dom-status.active   { background: #dcfce7; color: #16a34a; }
.theme-dom-status.expired  { background: #fee2e2; color: #dc2626; }
.theme-dom-status.pending  { background: #fef9c3; color: #ca8a04; }
.theme-dom-status.grace    { background: #ffedd5; color: #ea580c; }
.theme-dom-status.cancelled { background: #f3f4f6; color: #6b7280; }

/* ==========================================================================
   4. EXTRACTED INVOICES CSS (clientareainvoices.tpl)
   ========================================================================== */
.theme-inv-title { font-size: 1.375rem; font-weight: 700; color: #111827; margin-bottom: 1rem; }

.theme-inv-search-wrap {
    margin-bottom: 0;
}
.theme-inv-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.45rem 0.875rem;
    max-width: 100%;
}
.theme-inv-search i { color: #9ca3af; font-size: 0.85rem; flex-shrink: 0; }
.theme-inv-search input {
    border: none; background: transparent; outline: none;
    font-size: 0.875rem; color: #374151; width: 100%; min-width: 0;
}
.theme-inv-search input::placeholder { color: #9ca3af; }

/* Table Overrides */
table.theme-inv-table {
    margin-bottom: 0 !important;
    border: none;
    border-collapse: collapse;
}
table.theme-inv-table thead th {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    padding: 0.625rem 0.5rem;
    background: transparent;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb; border-top: none;
}
table.theme-inv-table tbody tr {
    background: transparent;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.1s;
}
table.theme-inv-table tbody tr:last-child { border-bottom: 1px solid #e5e7eb; }
table.theme-inv-table tbody tr:hover { background: #f8faff; cursor: pointer; }
table.theme-inv-table td { padding: 0.875rem 0.5rem; vertical-align: middle; font-size: 0.875rem; color: #374151; border-top: none; }

.theme-inv-num { font-weight: 600; color: #036daf; text-decoration: none; }
.theme-inv-num:hover { text-decoration: underline; }

.theme-inv-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.theme-inv-badge.paid     { background: #dcfce7; color: #16a34a; }
.theme-inv-badge.unpaid   { background: #fee2e2; color: #dc2626; }
.theme-inv-badge.overdue  { background: #fee2e2; color: #dc2626; }
.theme-inv-badge.draft    { background: #fef9c3; color: #ca8a04; }
.theme-inv-badge.cancelled { background: #f3f4f6; color: #6b7280; }
.theme-inv-badge.refunded { background: #eff6ff; color: #036daf; }

.theme-inv-amount { font-weight: 600; color: #111827; }
.theme-inv-date { color: #6b7280; }
.theme-inv-overdue-date { color: #dc2626; font-weight: 600; }

.theme-inv-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    transition: all 0.12s;
}
.theme-inv-pdf:hover { color: #036daf; background: #eff6ff; }

/* ==========================================================================
   5. AGGRESSIVE TABLE FLATTENING
   ========================================================================== */
.table-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    box-shadow: none !important;
}
table.theme-svc-table,
table.theme-dom-table,
table.theme-inv-table,
table#tableTicketsList {
    margin-bottom: 0 !important;
    border: none !important;
    border-collapse: collapse !important;
    background: transparent !important;
}
table.theme-svc-table thead th,
table.theme-dom-table thead th,
table.theme-inv-table thead th,
table#tableTicketsList thead th {
    background: transparent !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb !important;
}
table.theme-svc-table tbody tr,
table.theme-dom-table tbody tr,
table.theme-inv-table tbody tr,
table#tableTicketsList tbody tr {
    background: #fff !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb !important;
}
table.theme-svc-table tbody td,
table.theme-dom-table tbody td,
table.theme-inv-table tbody td,
table#tableTicketsList tbody td {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}


.dataTables_wrapper {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* ==========================================================================
   FINAL UNIFIED TABLE/LIST CARD DESIGN (Matches exampletable.png)
   ========================================================================== */
.theme-list-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    overflow: hidden;
}

/* Toolbar inside the card (Search, filters) */
.theme-list-toolbar {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: #ffffff;
}
.theme-list-search {
    flex: 1 1 100%;
    position: relative;
}
.theme-list-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}
.theme-list-search input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.875rem;
    color: #374151;
    background: #fafafa;
    transition: all 0.2s;
}
.theme-list-search input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Table overrides inside the card */
.theme-list-card .table-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.theme-list-card table {
    margin-bottom: 0 !important;
    border: none !important;
    border-collapse: collapse !important;
    width: 100%;
}
.theme-list-card table thead th {
    background: #ffffff !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 0.875rem 1rem;
	text-align: start !important;
}
.theme-list-card table tbody tr {
    background: #ffffff !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: background 0.12s;
}
.theme-list-card table tbody tr:last-child {
    border-bottom: none !important;
}
.theme-list-card table tbody tr:hover {
    background: #f9fafb !important;
}
.theme-list-card table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border: none !important;
}

/* Top Right Title Button (like "+ Yeni ticket") */
.theme-title-btn {
    background: #eff6ff;
    color: #036daf;
    border: none;
    padding: 0.35rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.12s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.theme-title-btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
    text-decoration: none;
}



/* Custom Sidebar Layout for logged-in pages */
.theme-layout-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: calc(100vh - var(--theme-topbar-height) - 3rem);
    margin: -1.5rem;
}
.theme-sidebar-col {
    flex: 0 0 16rem;
    max-width: 16rem;
    background: #ffffff;
    border-right: 1px solid var(--theme-border-default);
    padding: 1.5rem 1rem;
    /* Remove sticky from col so it stretches full height, sticky goes on inner */
}
.theme-main-col {
    flex: 1;
    min-width: 0; 
    padding: 1.5rem;
}
@media (max-width: 991.98px) {
    .theme-layout-row {
        flex-wrap: wrap;
        margin: -1rem -0.75rem;
    }
    .theme-sidebar-col {
        flex: 0 0 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--theme-border-default);
        padding: 1rem 0.75rem;
    }
    .theme-main-col {
        padding: 1rem 0.75rem;
    }
}



/* ==========================================================================
   SIDEBAR FIX - Remove native card/panel styles from inner sidebar
   ========================================================================== */
.theme-sidebar-col .card,
.theme-sidebar-col .panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 1rem !important;
}
.theme-sidebar-col .card-body,
.theme-sidebar-col .panel-body,
.theme-sidebar-col .list-group {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
.theme-sidebar-col .card-header,
.theme-sidebar-col .panel-heading {
    display: none !important;
}



/* Masspay/Sidebar Overlapping Buttons Fix */
.theme-sidebar-col .panel-body,
.theme-sidebar-col .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.theme-sidebar-col .panel-body form,
.theme-sidebar-col .card-body form {
    margin: 0;
}
.theme-sidebar-col .btn {
    margin-bottom: 0.25rem;
}
.theme-sidebar-col .panel {
    clear: both;
}


/* Sidebar Body HTML Fix (Overlapping Buttons) */
.theme-sidebar-col .px-2.pb-2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.theme-sidebar-col form {
    margin-bottom: 0;
}
.theme-sidebar-col .btn {
    white-space: normal;
    height: auto;
}


/* Sidebar HTML Wrapper Fixes */
.theme-sidebar-col > div > .px-2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ==========================================================================
   AUTHENTICATION PAGES (Split Screen Mockup Design)
   ========================================================================== */
/* Hide WHMCS Default Elements for auth pages */
body:has(.theme-login-wrapper) header#header,
body:has(.theme-login-wrapper) section#header,
body:has(.theme-login-wrapper) header.theme-topbar,
body:has(.theme-login-wrapper) .navbar,
body:has(.theme-login-wrapper) footer,
body:has(.theme-login-wrapper) #footer,
body:has(.theme-login-wrapper) .theme-footer,
body:has(.theme-login-wrapper) .theme-sidebar-overlay,
body:has(.theme-login-wrapper) #fullpage-overlay {
    display: none !important;
}

/* Reset main body to full viewport with light gray background */
body:has(.theme-login-wrapper) {
    margin: 0;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6 !important;
    background-image: none !important;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

body:has(.theme-login-wrapper) section#main-body {
    width: 100%;
    max-width: 1200px;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block;
}

/* Main Split Container */
.theme-login-wrapper {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    min-height: 700px;
    max-height: calc(100vh - 4rem);
}

/* Left Sidebar (Image & Quote) */
.theme-login-sidebar {
    flex: 0 0 45%;
    background-image: url('https://images.unsplash.com/photo-1573164713988-8665fc963095?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}
.theme-login-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}
.theme-login-sidebar-content {
    position: relative;
    z-index: 2;
}
.theme-login-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}
.theme-login-logo img {
    height: 1.5rem;
    filter: brightness(0) invert(1); /* Ensure logo is white */
}
.theme-login-quote {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
.theme-login-quote-author {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}
.theme-login-quote-title {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Right Side (Form Area) */
.theme-login-main {
    flex: 1;
    position: relative;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    background: #ffffff;
}
.theme-auth-language {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 3;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.45rem 0.7rem;
    color: #6b7280;
    background: #ffffff;
    font-size: 0.75rem;
    cursor: pointer;
}
.theme-auth-language:hover,
.theme-auth-language:focus {
    color: #4f46e5;
    border-color: #c7d2fe;
    outline: none;
}
.theme-login-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Register page gets a wider form area since WHMCS forms are big */
.theme-login-wrapper.is-register .theme-login-form-container {
    max-width: 100%;
}
.theme-login-wrapper.is-register .theme-login-sidebar {
    flex: 0 0 35%; /* Make sidebar slightly narrower for register */
}

/* Typography & Titles */
.theme-login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 0.5rem;
}
.theme-login-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Forms & Inputs */
.theme-login-form-group {
    margin-bottom: 1rem;
}
.theme-login-form-container label,
.theme-login-wrapper .control-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: none;
}
.theme-login-input,
.theme-login-wrapper .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #111827;
    transition: all 0.2s;
    background: #ffffff;
    box-shadow: none;
}
.theme-login-input:focus,
.theme-login-wrapper .form-control:focus {
    outline: none;
    border-color: #3b91cc; /* Purple focus */
    box-shadow: 0 0 0 2px rgb(59 145 204 / 16%);
}

/* Pill Buttons */
.theme-btn-primary,
.theme-login-wrapper .btn-primary {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px !important;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff !important;
    background-color: #2a91cf !important;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}
.theme-btn-primary:hover,
.theme-login-wrapper .btn-primary:hover {
    background-color: #1e6597 !important;
}

.btn-default {
	width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px !important;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff !important;
    background-color: #2e2e2e !important;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.btn-default:hover {
	background-color: #525252 !important;
}

.theme-btn-social {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    background-color: #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
}
.theme-btn-social:hover {
    background-color: #e5e7eb;
}
.theme-btn-social img {
    height: 1.25rem;
}

/* WHMCS Sign-In Integrations */
.theme-login-wrapper .providerPreLinking .social-signin-btns {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.theme-login-wrapper .providerPreLinking .social-signin-btns .btn {
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Divider */
.theme-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}
.theme-login-divider::before,
.theme-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}
.theme-login-divider span {
    padding: 0 0.75rem;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Links & Extras */
.theme-login-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2a91cf;
    text-decoration: none;
    transition: color 0.2s;
}
.theme-login-link:hover {
    color: #186c9f;
    text-decoration: none;
}
.theme-login-bottom-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 2rem;
}
.theme-login-legal {
    margin: 1rem auto 0;
    max-width: 440px;
    color: #9ca3af;
    font-size: 0.72rem;
    line-height: 1.55;
    text-align: center;
}
.theme-login-legal a {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.theme-login-legal a:hover {
    color: #4f46e5;
}

/* Toggle Switch (Mockup Style) */
.theme-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
}
.theme-toggle-wrap label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}
.theme-toggle-switch {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
}
.theme-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.theme-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e5e7eb;
    transition: .3s;
    border-radius: 9999px;
}
.theme-toggle-slider:before {
    position: absolute;
    content: "";
    height: 1.125rem;
    width: 1.125rem;
    left: 0.1875rem;
    bottom: 0.1875rem;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.theme-toggle-switch input:checked + .theme-toggle-slider {
    background-color: #6366f1;
}
.theme-toggle-switch input:checked + .theme-toggle-slider:before {
    transform: translateX(1.25rem);
}

/* Specific resets for WHMCS Register form */
.theme-login-wrapper.is-register .card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.theme-login-wrapper.is-register .card-body {
    padding: 0 !important;
}
.theme-login-wrapper.is-register .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .theme-login-wrapper {
        flex-direction: column;
        max-height: none;
    }
    .theme-login-sidebar {
        flex: none;
        min-height: 250px;
        padding: 2rem;
    }
    .theme-login-main {
        padding: 2rem 1.5rem;
    }
}

/* Hide sidebar completely on auth pages */
body:has(.theme-login-wrapper) .theme-sidebar-col,
body:has(.theme-login-wrapper) .sidebar,
body:has(.theme-login-wrapper) .col-lg-4.col-xl-3 {
    display: none !important;
}
body:has(.theme-login-wrapper) .theme-main-col,
body:has(.theme-login-wrapper) .primary-content,
body:has(.theme-login-wrapper) .theme-layout-row {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}



/* Reset list-group-item styles when used with theme-subnav-link for Bootstrap tab switching */
.theme-subnav-link.list-group-item {
    border: none !important;
    background-color: transparent;
    padding: 0.5rem 0.75rem !important; /* Keep our padding */
    margin-bottom: 0 !important;
}
.theme-subnav-link.list-group-item:hover,
.theme-subnav-link.list-group-item:focus {
    background-color: var(--theme-bg-subtle) !important;
    color: var(--theme-text-main) !important;
}
.theme-subnav-link.list-group-item.active {
    background-color: var(--theme-primary-light) !important;
    color: var(--theme-primary) !important;
    border: none !important;
}

/* --- Domain Details Overview Redesign --- */
.domain-header-card {
    background: #ffffff;
    border: 1px solid var(--theme-border-default, #eaeaea);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.domain-icon-wrapper {
    width: 50px;
    height: 50px;
    background: #f0f4f8;
    color: #33596b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.domain-title-wrap h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}
.domain-stats-row {
    border-top: 1px solid #f0f4f8;
    padding-top: 20px;
}
.stat-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
}
.domain-info-card {
    background: #ffffff;
    border: 1px solid var(--theme-border-default, #eaeaea);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    overflow: hidden;
}
.domain-info-card .card-header {
    background: transparent;
    border-bottom: 1px solid #f0f4f8;
    font-weight: 600;
    padding: 16px 20px;
    color: #33596b;
}
.domain-info-card .card-body {
    padding: 20px;
}

/* Custom Toggle Switch for WHMCS */
.toggle-switch {
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
    cursor: pointer;
}
.toggle-switch:hover {
    background: #cbd5e1;
}
.toggle-switch.active {
    background: #10b981; /* Success Green */
}
.toggle-switch.active:hover {
    background: #059669;
}
.toggle-switch .toggle-knob {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.active .toggle-knob {
    transform: translateX(20px);
}


/* Nameserver Custom Choice Cards */
.ns-choice-card {
    cursor: pointer;
    margin: 0;
}
.ns-card-content {
    border: 2px solid var(--theme-border-color, #dee2e6);
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: var(--theme-bg-subtle, #f8f9fa);
}
.ns-choice-card input[type="radio"]:checked + .ns-card-content {
    border-color: #007bff;
    background-color: rgba(0,123,255,0.05);
}
.ns-choice-card:hover .ns-card-content {
    border-color: #007bff;
}
.ns-choice-card input[type="radio"]:focus + .ns-card-content {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}


/* Private Nameservers Management Table */
.ns-manage-table th {
    border-top: none !important;
}
.ns-manage-table td {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    vertical-align: middle;
}



/* CLIENT AREA PRODUCT DETAILS - MODERN LIGHT DASHBOARD */
.modern-dashboard-wrapper {
    background-color: transparent;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    border-radius: 8px;
}
.modern-dashboard-wrapper .dd-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.modern-dashboard-wrapper .text-muted { color: #64748b !important; }
.modern-dashboard-wrapper .text-dark-custom { color: #0f172a !important; }
.modern-dashboard-wrapper .text-green { color: #10b981 !important; }

/* Header Strip */
.dd-header-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.dd-header-title { font-size: 24px; font-weight: 700; color: #0f172a; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; }
.dd-status-badge { background-color: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.dd-header-subtitle { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 10px; }

/* Billing Strip */
.dd-billing-strip {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px 25px;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.dd-billing-item { display: flex; flex-direction: column; gap: 5px; }
.dd-billing-label { font-size: 12px; color: #64748b; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.dd-billing-val { font-size: 15px; color: #0f172a; font-weight: 600; }
.dd-renew-progress-container { width: 250px; flex-shrink: 0; }
.dd-renew-progress-bar { height: 4px; background-color: #e2e8f0; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.dd-renew-progress-fill { height: 100%; background-color: #ef4444; width: 85%; }

/* Tabs */
.dd-tabs { display: flex; gap: 5px; border-bottom: 1px solid #e2e8f0; margin-top: 25px; margin-bottom: 25px; border-top: none; border-left: none; border-right: none; }
.dd-tabs a { padding: 12px 20px; color: #64748b; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; transition: all 0.2s; display: flex; align-items: center; gap: 8px; background: none !important; }
.dd-tabs a:hover { color: #0f172a; border-bottom: 2px solid #3b82f6; }
.dd-tabs a.active { color: #0f172a; border-bottom: 2px solid #3b82f6; }

/* Rings */
.dd-metric-ring { display: flex; align-items: center; gap: 15px; position: relative; }
.dd-metric-ring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.dd-metric-ring circle { fill: none; stroke-width: 4; }
.dd-metric-ring .bg { stroke: #e2e8f0; }
.dd-metric-ring .fill { stroke: #3b82f6; stroke-linecap: round; }

/* Quick Actions */
.dd-quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }
.dd-action-btn { background-color: #ffffff; border: 1px solid #e2e8f0; color: #1e293b; padding: 15px; border-radius: 8px; font-size: 14px; font-weight: 600; text-align: left; display: flex; align-items: center; gap: 12px; transition: all 0.2s; cursor: pointer; text-decoration: none !important; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.dd-action-btn:hover { background-color: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.dd-action-btn i { font-size: 18px; color: #3b82f6; width: 20px; text-align: center; }

/* Info Grid */
.dd-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dd-info-item { display: flex; flex-direction: column; gap: 5px; margin-bottom: 15px; }
.dd-info-item .label { font-size: 11px; color: #64748b; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.dd-info-item .val { font-size: 14px; color: #0f172a; font-weight: 500; }


/* VDS Top Header & Billing Strip - Light Theme */
.vds-top-wrapper {
    margin-bottom: 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.vds-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.vds-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vds-title-icon {
    background-color: #f1f5f9;
    color: #64748b;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
}
.vds-title-text {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.vds-badge-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.vds-badge-pending { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.vds-badge-suspended { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

.vds-subtitle-row {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}
.vds-subtitle-link { color: #0f172a; text-decoration: none; font-weight: 500; }
.vds-subtitle-link:hover { text-decoration: underline; }
.vds-subtitle-badge {
    background-color: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.vds-actions { display: flex; gap: 8px; }
.vds-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
}
.vds-btn-outline { background-color: #ffffff; color: #334155; border: 1px solid #cbd5e1; }
.vds-btn-outline:hover { background-color: #f8fafc; color: #0f172a; }
.vds-btn-solid { background-color: #10b981; color: #ffffff; border: 1px solid #059669; }
.vds-btn-solid:hover { background-color: #059669; color: #ffffff; }

.vds-billing-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.vds-billing-info { display: flex; gap: 40px; flex-wrap: wrap; }
.vds-billing-item { display: flex; flex-direction: column; gap: 4px; }
.vds-billing-label { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.vds-billing-value { font-size: 15px; font-weight: 600; color: #0f172a; }
.vds-billing-value small { font-size: 12px; color: #64748b; font-weight: normal; }

.vds-renew-box { min-width: 250px; flex-shrink: 0; }
.vds-renew-header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.vds-renew-title { color: #475569; display: flex; align-items: center; gap: 5px; }
.vds-renew-days { color: #ef4444; font-weight: 600; }
.vds-progress-bar-bg { height: 4px; background-color: #e2e8f0; border-radius: 4px; overflow: hidden; }
.vds-progress-bar-fill { height: 100%; background-color: #ef4444; width: 85%; }


/* VDS Top Header & Billing Strip - Refined */
.vds-hero-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.vds-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.vds-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vds-title-icon {
    background-color: #f1f5f9;
    color: #64748b;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
}
.vds-title-text {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.vds-badge-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.vds-badge-pending { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.vds-badge-suspended { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

.vds-subtitle-row {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}
.vds-subtitle-link { color: #0f172a; text-decoration: none; font-weight: 500; }
.vds-subtitle-link:hover { text-decoration: underline; }
.vds-subtitle-badge {
    background-color: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.vds-actions { display: flex; gap: 8px; }
.vds-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
}
.vds-btn-outline { background-color: #ffffff; color: #334155; border: 1px solid #cbd5e1; }
.vds-btn-outline:hover { background-color: #f8fafc; color: #0f172a; }
.vds-btn-cancel { color: #ef4444 !important; border-color: #ef4444 !important; }
.vds-btn-cancel:hover { background-color: #fef2f2 !important; color: #dc2626 !important; border-color: #dc2626 !important; }

.vds-billing-info { display: flex; gap: 40px; flex-wrap: wrap; }
.vds-billing-item { display: flex; flex-direction: column; gap: 4px; }
.vds-billing-label { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.vds-billing-value { font-size: 15px; font-weight: 600; color: #0f172a; }
.vds-billing-value small { font-size: 12px; color: #64748b; font-weight: normal; }

.modal-localisation .item-selector .item {
    color: #161616 !important;
}

/* Fix Google Sign-In Button alignment */
.theme-login-wrapper .providerPreLinking .social-signin-btns { display: flex; flex-direction: column; align-items: center; width: 100%; }
.theme-login-wrapper .providerPreLinking .social-signin-btns > div { display: contents; width: 100%; }
