/* ==========================================================================
   Sorkhab Pro Design System - Yekan Bakh Typography & Luxury Full-Bleed SaaS
   ========================================================================== */

/* 1. Local Server Yekan Bakh Font Definitions */
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakh-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakh-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakh-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakh-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakh-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Color Palette */
    --ar-primary: #00baba;
    --ar-primary-hover: #00d6d6;
    --ar-primary-glow: rgba(0, 186, 186, 0.25);
    
    /* Dark Surface & Backgrounds */
    --ar-bg-body: #06090e;
    --ar-bg-header: rgba(12, 17, 24, 0.92);
    --ar-bg-surface: #0e141c;
    --ar-bg-card: #131b26;
    --ar-bg-card-hover: #182330;
    --ar-bg-input: #090d12;
    
    /* Borders & Dividers */
    --ar-border-subtle: rgba(255, 255, 255, 0.08);
    --ar-border-active: rgba(0, 186, 186, 0.45);
    --ar-border-card: #1e293b;
    
    /* Text Hierarchy */
    --ar-text-primary: #f8fafc;
    --ar-text-secondary: #94a3b8;
    --ar-text-muted: #64748b;
    
    /* Status Colors */
    --ar-status-success: #10b981;
    --ar-status-warning: #f59e0b;
    --ar-status-danger: #ef4444;

    /* Metrics & Geometry (Rounded Minimalism) */
    --ar-radius-2xl: 22px;
    --ar-radius-xl: 18px;
    --ar-radius-lg: 14px;
    --ar-radius-md: 10px;
    --ar-radius-sm: 8px;
    --ar-shadow-glow: 0 0 25px rgba(0, 186, 186, 0.18);
    --ar-shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Full-Bleed Viewport Overrides (Break Out of WordPress Container)
   ========================================================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    background-color: var(--ar-bg-body) !important;
    color: var(--ar-text-primary) !important;
    font-family: 'Yekan Bakh', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    direction: rtl;
    text-align: right;
    overflow-x: hidden !important;
}

/* Strip ALL WordPress Theme padding & layout constraints */
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body .is-layout-flow > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.wp-site-blocks,
.entry-content,
.wp-block-post-content,
main.wp-block-group,
.site-content,
.content-area {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Hide WP default theme header, footer, navigation and post title */
header.wp-block-template-part,
footer.wp-block-template-part,
.wp-block-navigation,
.entry-title,
.wp-block-post-title,
.site-header,
.site-footer {
    display: none !important;
}

/* ==========================================================================
   Root Layout Container
   ========================================================================== */
.ar-saas-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 186, 186, 0.09) 0%, transparent 65%),
                radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.05) 0%, transparent 50%),
                var(--ar-bg-body);
    box-sizing: border-box;
    font-family: 'Yekan Bakh', sans-serif !important;
}

.ar-saas-layout * {
    box-sizing: border-box;
    font-family: inherit;
}

/* ==========================================================================
   Top Header Bar (Minimalist Glassmorphic Luxury)
   ========================================================================== */
.ar-top-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--ar-bg-header);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--ar-border-subtle);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ar-brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ar-brand-logo {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #00baba 0%, #087373 100%);
    border-radius: var(--ar-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 18px rgba(0, 186, 186, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ar-brand-info h1 {
    margin: 0 0 3px 0 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    letter-spacing: -0.3px;
    color: #ffffff !important;
}

.ar-brand-info span {
    font-size: 12.5px;
    color: var(--ar-text-secondary);
    display: flex;
    align-items: center;
    gap: 7px;
}

.ar-pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--ar-status-success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--ar-status-success);
    animation: ar-pulse 2s infinite;
}

@keyframes ar-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* User & Wallet Navbar Section */
.ar-navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ar-wallet-pill {
    background: #101620;
    border: 1px solid var(--ar-border-card);
    border-radius: 35px;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.ar-wallet-pill:hover {
    border-color: var(--ar-primary);
    box-shadow: 0 0 18px rgba(0, 186, 186, 0.2);
}

.ar-wallet-meta {
    text-align: right;
}

.ar-wallet-meta-title {
    font-size: 11px;
    color: var(--ar-text-muted);
    font-weight: 500;
}

.ar-wallet-meta-value {
    font-size: 17px;
    font-weight: 900;
    color: var(--ar-primary);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   Main Content Area (Wide & Rounded)
   ========================================================================== */
.ar-main-content {
    flex: 1;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 40px 60px;
}

/* ==========================================================================
   Bento Metrics Dashboard Grid (Rounded & Clean Typography)
   ========================================================================== */
.ar-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.ar-bento-card {
    background: var(--ar-bg-card);
    border: 1px solid var(--ar-border-card);
    border-radius: var(--ar-radius-xl);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--ar-shadow-card);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ar-bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--ar-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.ar-bento-card:hover {
    transform: translateY(-3px);
    border-color: var(--ar-border-active);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), var(--ar-shadow-glow);
}

.ar-bento-card:hover::before {
    opacity: 1;
}

.ar-bento-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--ar-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ar-border-subtle);
    flex-shrink: 0;
}

.ar-bento-data {
    flex: 1;
    min-width: 0;
}

.ar-bento-title {
    font-size: 13px;
    color: var(--ar-text-secondary);
    margin-bottom: 5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ar-bento-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--ar-text-primary);
    white-space: nowrap;
}

.ar-bento-sub {
    font-size: 11.5px;
    color: var(--ar-text-muted);
    margin-top: 4px;
    white-space: nowrap;
}

/* ==========================================================================
   Navigation Tabs (Segmented Control - Rounded & No Ugly Scrollbar)
   ========================================================================== */
.ar-nav-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ar-bg-surface);
    border: 1px solid var(--ar-border-card);
    border-radius: var(--ar-radius-xl);
    padding: 7px;
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ar-nav-pills::-webkit-scrollbar {
    display: none;
}

.ar-nav-pill-btn {
    background: transparent;
    border: none;
    color: var(--ar-text-secondary);
    padding: 11px 22px;
    border-radius: var(--ar-radius-lg);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ar-nav-pill-btn:hover {
    color: var(--ar-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.ar-nav-pill-btn.active {
    background: var(--ar-primary);
    color: #06090e;
    font-weight: 900;
    box-shadow: 0 4px 18px rgba(0, 186, 186, 0.35);
}

/* ==========================================================================
   Filter & View Controls Bar
   ========================================================================== */
.ar-view-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.ar-search-box {
    position: relative;
    min-width: 340px;
}

.ar-search-input {
    width: 100%;
    background: var(--ar-bg-surface);
    border: 1px solid var(--ar-border-card);
    border-radius: var(--ar-radius-lg);
    padding: 12px 18px 12px 40px;
    color: var(--ar-text-primary);
    font-size: 13.5px;
    transition: all 0.2s ease;
}

.ar-search-input:focus {
    outline: none;
    border-color: var(--ar-primary);
    box-shadow: 0 0 0 3px rgba(0, 186, 186, 0.15);
}

.ar-view-toggle {
    display: flex;
    background: var(--ar-bg-surface);
    border: 1px solid var(--ar-border-card);
    border-radius: var(--ar-radius-md);
    padding: 4px;
    gap: 4px;
}

.ar-view-btn {
    background: transparent;
    border: none;
    color: var(--ar-text-muted);
    padding: 7px 14px;
    border-radius: var(--ar-radius-sm);
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.ar-view-btn.active {
    background: var(--ar-bg-card);
    color: var(--ar-primary);
}

/* ==========================================================================
   Server Cards Grid (Clean Responsive Grid with Rounded Corners)
   ========================================================================== */
.ar-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.ar-server-card {
    background: var(--ar-bg-card);
    border: 1px solid var(--ar-border-card);
    border-radius: var(--ar-radius-xl);
    padding: 26px;
    box-shadow: var(--ar-shadow-card);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ar-server-card:hover {
    border-color: var(--ar-primary);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), var(--ar-shadow-glow);
}

.ar-server-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.ar-server-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--ar-text-primary);
}

.ar-server-region {
    font-size: 12.5px;
    color: var(--ar-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ar-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

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

.ar-status-badge.suspended {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Spec Chips & Info Rows */
.ar-spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ar-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ar-border-subtle);
    border-radius: var(--ar-radius-sm);
    padding: 5px 12px;
    font-size: 12px;
    color: var(--ar-text-secondary);
}

.ar-server-meta-list {
    margin: 0 0 22px 0;
    padding: 0;
    list-style: none;
}

.ar-server-meta-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
    color: var(--ar-text-secondary);
}

.ar-server-meta-list li:last-child {
    border-bottom: none;
}

.ar-server-meta-list strong {
    color: var(--ar-text-primary);
    direction: ltr;
    font-weight: 700;
}

.ar-server-price {
    color: var(--ar-primary) !important;
    font-weight: 900;
    direction: rtl !important;
}

/* Card Action Buttons */
.ar-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ==========================================================================
   Enterprise Data Table (Alternative View)
   ========================================================================== */
.ar-table-card {
    background: var(--ar-bg-card);
    border: 1px solid var(--ar-border-card);
    border-radius: var(--ar-radius-xl);
    overflow: hidden;
    box-shadow: var(--ar-shadow-card);
    margin-bottom: 30px;
}

.ar-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.ar-enterprise-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: right;
}

.ar-enterprise-table th {
    background: #090e15;
    color: var(--ar-text-muted);
    padding: 16px 22px;
    font-weight: 800;
    border-bottom: 1px solid var(--ar-border-card);
    white-space: nowrap;
}

.ar-enterprise-table td {
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--ar-text-secondary);
    vertical-align: middle;
}

.ar-enterprise-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--ar-text-primary);
}

/* ==========================================================================
   Buttons & Interactive Elements (Rounded Luxury)
   ========================================================================== */
.ar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--ar-radius-md);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.ar-btn-primary {
    background: var(--ar-primary);
    color: #06090e;
}
.ar-btn-primary:hover {
    background: var(--ar-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 186, 186, 0.4);
}

.ar-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ar-text-primary);
    border: 1px solid var(--ar-border-card);
}
.ar-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.ar-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.ar-btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.ar-btn-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.ar-btn-success:hover {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   Wizard & Form Panels
   ========================================================================== */
.ar-form-card {
    background: var(--ar-bg-card);
    border: 1px solid var(--ar-border-card);
    border-radius: var(--ar-radius-xl);
    padding: 34px;
    box-shadow: var(--ar-shadow-card);
}

.ar-form-group {
    margin-bottom: 22px;
}

.ar-form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ar-text-primary);
    margin-bottom: 8px;
}

.ar-input, .ar-select {
    width: 100%;
    background: var(--ar-bg-input);
    border: 1px solid var(--ar-border-card);
    border-radius: var(--ar-radius-md);
    padding: 14px 18px;
    color: var(--ar-text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.ar-input:focus, .ar-select:focus {
    outline: none;
    border-color: var(--ar-primary);
    box-shadow: 0 0 0 3px rgba(0, 186, 186, 0.15);
}

/* ==========================================================================
   Terminal Window & Modals
   ========================================================================== */
.ar-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease;
}

.ar-modal-backdrop.active {
    visibility: visible;
    opacity: 1;
}

.ar-modal-box {
    background: #0e141c;
    border: 1px solid var(--ar-border-card);
    border-radius: var(--ar-radius-2xl);
    width: 92%;
    max-width: 580px;
    padding: 32px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--ar-shadow-glow);
}

.ar-terminal-screen {
    background: #05080c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ar-radius-md);
    font-family: monospace;
    direction: ltr;
    text-align: left;
    padding: 18px;
    color: #4ade80;
    font-size: 13px;
    line-height: 1.6;
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 20px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1280px) {
    .ar-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ar-top-navbar {
        padding: 14px 20px;
        flex-direction: column;
        align-items: stretch;
    }
    .ar-navbar-actions {
        justify-content: space-between;
    }
    .ar-main-content {
        padding: 20px 16px 40px;
    }
    .ar-bento-grid {
        grid-template-columns: 1fr;
    }
    .ar-servers-grid {
        grid-template-columns: 1fr;
    }
    .ar-view-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}
