/* ════════════════════════════════════════════
   🎨 Paymenter Pro UI - v3.0
   ════════════════════════════════════════════ */

/* ── Font ── */
* {
    font-family: 'Vazirmatn', -apple-system, sans-serif !important;
}

html[lang="fa"] body {
    font-feature-settings: "ss01";
}

/* ════════════════════════════════════════════
   🌗 Color System - Light & Dark
   ════════════════════════════════════════════ */

/* Light Mode (Default) */
/* Light Mode (Default) — حالا به سیستم مرکزی --m3-* وصل شده */
:root {
    --p-bg: var(--m3-surface);
    --p-surface: var(--m3-surface-container-low);
    --p-surface-2: var(--m3-surface-container);
    --p-surface-hover: var(--m3-surface-container-high);
    --p-border: var(--m3-outline-variant);
    --p-border-strong: var(--m3-outline);
    --p-text: var(--m3-on-surface);
    --p-text-secondary: var(--m3-on-surface-variant);
    --p-text-muted: var(--m3-on-surface-variant);
    --p-text-dim: var(--m3-outline);
    --p-primary: #6366f1;
    --p-success: #10b981;
    --p-danger: #ef4444;
    --p-warning: #f59e0b;
    --p-info: #3b82f6;
    --p-purple: #a855f7;
    --p-code-bg: rgba(99, 102, 241, 0.08);
}

/* Dark Mode — همون سیستم مرکزی، برای هماهنگی کامل */
html.dark, .dark {
    --p-bg: var(--m3-surface) !important;
    --p-surface: var(--m3-surface-container-low) !important;
    --p-surface-2: var(--m3-surface-container) !important;
    --p-surface-hover: var(--m3-surface-container-high) !important;
    --p-border: var(--m3-outline-variant) !important;
    --p-border-strong: var(--m3-outline) !important;
    --p-text: var(--m3-on-surface) !important;
    --p-text-secondary: var(--m3-on-surface-variant) !important;
    --p-text-muted: var(--m3-on-surface-variant) !important;
    --p-text-dim: var(--m3-outline) !important;
    --p-code-bg: rgba(99, 102, 241, 0.15) !important;
}
/* اعمال پس‌زمینه تاریک به body در تم دارک */
html.dark body,
.dark body {
    background: var(--p-bg) !important;
    color: var(--p-text) !important;
}

/* ════════════════════════════════════════════
   📦 کارت‌های اصلی - بدون پس‌زمینه روشن در تم تاریک
   ════════════════════════════════════════════ */

main .grid > div,
main [class*="bg-white"],
main [class*="dark:bg-secondary"] {
    background: var(--p-surface) !important;
    border: 1px solid var(--p-border) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    position: relative;
    transition: all 0.25s ease !important;
}

main .grid > div:hover {
    border-color: var(--p-border-strong) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08) !important;
}

/* خط رنگی بالا */
main .grid > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--p-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 2px;
}

main .grid > div:hover::before {
    opacity: 1;
}

/* ════════════════════════════════════════════
   🎯 Product Details Card - اصلاح Alignment
   ════════════════════════════════════════════ */

/* اطلاعات محصول (Name, Price, Billing Cycle, ...) */
.product-info,
main dl,
main div:has(> dt) {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
}

/* هر سطر اطلاعات */
main dl > div,
main div:has(> dt) > div {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 0 !important;
    border: none !important;
}

/* لیبل (Name, Price, etc) */
main dt,
main .label,
main strong + span {
    color: var(--p-text-muted) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    min-width: 100px;
    display: inline-flex !important;
    align-items: center;
    line-height: 1.5 !important;
}

/* مقدار */
main dd,
main .value {
    color: var(--p-text) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* دکمه ادیت کنار Name */
button.edit-btn,
main button[wire\:click*="edit"],
main button:has(svg.w-4) {
    width: 32px !important;
    height: 32px !important;
    padding: 6px !important;
    border-radius: 8px !important;
    background: var(--p-surface-hover) !important;
    border: 1px solid var(--p-border) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

/* ════════════════════════════════════════════
   🚫 Cancel Button - با آیکون خطر
   ════════════════════════════════════════════ */

button[wire\:click*="cancel"],
button[wire\:click*="Cancel"],
button:contains("Cancel") {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--p-danger) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    position: relative;
    padding-right: 32px !important;
}

button[wire\:click*="cancel"]::before,
button:contains("Cancel")::before {
    content: '⚠️';
    margin-left: 6px;
    font-size: 0.9rem;
}

button[wire\:click*="cancel"]:hover {
    background: var(--p-danger) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ════════════════════════════════════════════
   📊 Connection, Memory, Storage - مرتب و حرفه‌ای
   ════════════════════════════════════════════ */

/* هر کارت آماری */
main .grid.grid-cols-3 > div,
main .grid.md\:grid-cols-3 > div,
main .stat-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 24px !important;
    min-height: 140px;
}

/* عنوان (Connection, Memory, Storage) */
main .stat-card h2,
main .grid.grid-cols-3 > div h2,
main .grid.md\:grid-cols-3 > div h2,
main .grid.grid-cols-3 > div h3,
main .grid.md\:grid-cols-3 > div h3 {
    color: var(--p-text-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* توضیح زیر عنوان */
main .grid.grid-cols-3 > div p,
main .grid.md\:grid-cols-3 > div p,
main .grid.grid-cols-3 > div .text-sm,
main .grid.md\:grid-cols-3 > div .text-sm {
    color: var(--p-text-dim) !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
}

/* مقدار اصلی (IP, RAM, SSD) - بالا و چپ، نه پایین! */
main .grid.grid-cols-3 > div .text-2xl,
main .grid.md\:grid-cols-3 > div .text-2xl,
main .grid.grid-cols-3 > div .text-3xl,
main .grid.md\:grid-cols-3 > div .text-3xl,
main .grid.grid-cols-3 > div .text-xl,
main .grid.md\:grid-cols-3 > div .text-xl {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--p-text) !important;
    line-height: 1.2 !important;
    margin-top: auto !important;
    text-align: left !important;
}

/* واحد (Online, GB RAM, GB SSD) - کنار عدد، نه پایین */
main .grid.grid-cols-3 > div .text-sm.text-gray-500,
main .grid.md\:grid-cols-3 > div .text-sm.text-gray-500 {
    display: inline !important;
    margin-right: 8px !important;
    font-size: 0.875rem !important;
    color: var(--p-text-muted) !important;
    font-weight: 500;
}

/* Container دیجیتالی - مقدار + واحد در یک خط */
main .grid.grid-cols-3 > div > div:last-child,
main .grid.md\:grid-cols-3 > div > div:last-child {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-top: auto;
}

/* وضعیت Online (سبز) */
main .grid.grid-cols-3 > div .text-green-500,
main .grid.md\:grid-cols-3 > div .text-green-500 {
    background: rgba(16, 185, 129, 0.12) !important;
    color: var(--p-success) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

main .grid.grid-cols-3 > div .text-green-500::before,
main .grid.md\:grid-cols-3 > div .text-green-500::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--p-success);
    border-radius: 50%;
    animation: liveDot 2s infinite;
    box-shadow: 0 0 8px var(--p-success);
}

@keyframes liveDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

/* ════════════════════════════════════════════
   🚀 آیکون‌های هوشمند
   ════════════════════════════════════════════ */

main h2:has-text("Connection")::before,
main h3:has-text("Connection")::before { content: '🌐'; }

main h2:has-text("Memory")::before,
main h3:has-text("Memory")::before { content: '💾'; }

main h2:has-text("Storage")::before,
main h3:has-text("Storage")::before { content: '💿'; }

main h2:has-text("Server Details")::before,
main h3:has-text("Server Details")::before { content: '⚙️'; }

main h2:has-text("Power Management")::before,
main h3:has-text("Power Management")::before { content: '⚡'; }

main h2:has-text("Server Activity")::before,
main h3:has-text("Server Activity")::before { content: '📊'; }

main h2:has-text("Product Details")::before,
main h3:has-text("Product Details")::before { content: '📦'; }

main h2:has-text("Actions")::before,
main h3:has-text("Actions")::before { content: '⚡'; }

/* ════════════════════════════════════════════
   🔧 Server Details - جدا از Server Activity
   ════════════════════════════════════════════ */

/* اضافه کردن فاصله بزرگ بین Server Details و Server Activity */
main h2:has-text("Server Activity"),
main h3:has-text("Server Activity") {
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px dashed var(--p-border-strong) !important;
}

/* یا اگر دو کارت جدا هستند: */
main div:has(> h2:has-text("Server Activity")),
main div:has(> h3:has-text("Server Activity")) {
    margin-top: 24px !important;
}

/* سطرهای جزئیات سرور */
main h3:has-text("Server Details") ~ * dt,
main h2:has-text("Server Details") ~ * dt {
    color: var(--p-text-muted) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    min-width: 130px;
}

main h3:has-text("Server Details") ~ * dd,
main h2:has-text("Server Details") ~ * dd {
    color: var(--p-text) !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* ════════════════════════════════════════════
   💻 IP, Code, Password - حذف دکمه‌های سفید اضافی
   ════════════════════════════════════════════ */

/* IP و کدها */
main code,
main .font-mono {
    direction: ltr !important;
    display: inline-flex !important;
    align-items: center;
    background: var(--p-code-bg) !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
    font-size: 0.825rem !important;
    color: var(--p-primary) !important;
    border: 1px solid var(--p-border) !important;
    font-weight: 500;
}

/* دکمه‌های کوچک کنار IP (Copy, Show/Hide) - استایل تمیز */
main code + button,
main .font-mono + button,
main dd > button:not([wire\:click*="refresh"]):not([wire\:click*="cancel"]) {
    width: 28px !important;
    height: 28px !important;
    padding: 4px !important;
    background: var(--p-surface-hover) !important;
    border: 1px solid var(--p-border) !important;
    border-radius: 6px !important;
    color: var(--p-text-muted) !important;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 28px;
}

main code + button:hover,
main .font-mono + button:hover {
    background: var(--p-primary) !important;
    color: white !important;
    border-color: var(--p-primary) !important;
    transform: scale(1.05);
}

/* اگر دکمه‌ها بدون آیکون هستند، آیکون اضافه کن */
main code + button:empty::before {
    content: '📋';
    font-size: 0.8rem;
}

main code + button + button:empty::before {
    content: '👁';
    font-size: 0.8rem;
}

/* پنهان کردن دکمه‌های کاملاً خالی و بی‌کاربرد */
main button:empty:not([wire\:click]):not([type]):not([class*="bg-"]) {
    display: none !important;
}

/* ════════════════════════════════════════════
   🎨 دکمه‌های Refresh - تمیز و کوچک
   ════════════════════════════════════════════ */

button[wire\:click*="refresh"],
button:has-text("Refresh") {
    background: transparent !important;
    border: 1px solid var(--p-border-strong) !important;
    color: var(--p-text-muted) !important;
    font-size: 0.75rem !important;
    padding: 6px 14px !important;
    font-weight: 500 !important;
}

button[wire\:click*="refresh"]::before,
button:has-text("Refresh")::before {
    content: '↻';
    font-size: 0.95rem;
    margin-left: 6px;
}

button[wire\:click*="refresh"]:hover,
button:has-text("Refresh"):hover {
    background: var(--p-surface-hover) !important;
    color: var(--p-primary) !important;
    border-color: var(--p-primary) !important;
}

/* ════════════════════════════════════════════
   🔘 دکمه‌های Action - رنگی و حرفه‌ای
   ════════════════════════════════════════════ */

button, [type="submit"] {
    padding: 9px 18px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s !important;
    border: 1px solid var(--p-border-strong) !important;
    background: var(--p-surface-hover) !important;
    color: var(--p-text) !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

/* Power On - Green */
button[wire\:click*="powerOn"],
button[wire\:click*="start"] {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: var(--p-success) !important;
}

button[wire\:click*="powerOn"]::before {
    content: '▶';
    font-size: 0.7rem;
}

button[wire\:click*="powerOn"]:hover {
    background: var(--p-success) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

/* Power Off - Red */
button[wire\:click*="powerOff"],
button[wire\:click*="stop"] {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: var(--p-danger) !important;
}

button[wire\:click*="powerOff"]::before { content: '⏻'; }

button[wire\:click*="powerOff"]:hover {
    background: var(--p-danger) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Reboot - Blue */
button[wire\:click*="reboot"],
button[wire\:click*="restart"] {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: var(--p-info) !important;
}

button[wire\:click*="reboot"]::before { content: '🔄'; }

button[wire\:click*="reboot"]:hover {
    background: var(--p-info) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* Reset Password - Orange */
button[wire\:click*="reset"]:not([wire\:click*="rebuild"]) {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: var(--p-warning) !important;
}

button[wire\:click*="reset"]:not([wire\:click*="rebuild"])::before {
    content: '🔑';
}

button[wire\:click*="reset"]:hover {
    background: var(--p-warning) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

/* Rebuild - Purple */
button[wire\:click*="rebuild"],
button[wire\:click*="reinstall"] {
    background: rgba(168, 85, 247, 0.1) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    color: var(--p-purple) !important;
}

button[wire\:click*="rebuild"]::before { content: '🛠'; }

button[wire\:click*="rebuild"]:hover {
    background: var(--p-purple) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.3);
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════
   📋 Server Activity Log
   ════════════════════════════════════════════ */

main .border-l-2,
main .border-l-4,
.activity-item {
    background: var(--p-surface-2) !important;
    border: 1px solid var(--p-border) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-bottom: 8px !important;
    border-left: none !important;
    border-right: 3px solid var(--p-primary) !important;
    transition: all 0.2s;
}

main .border-l-2:hover {
    background: var(--p-surface-hover) !important;
    transform: translateX(-3px);
}

/* ════════════════════════════════════════════
   ⚠️ Destructive Zone
   ════════════════════════════════════════════ */

[class*="destructive"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), rgba(239, 68, 68, 0.08)) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: 14px !important;
}

/* ════════════════════════════════════════════
   📜 Status Badge (Active)
   ════════════════════════════════════════════ */

.text-green-500:not(::before):not(span:contains("Online")) {
    background: rgba(16, 185, 129, 0.12) !important;
    color: var(--p-success) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════
   📝 Form Controls
   ════════════════════════════════════════════ */

input, select, textarea {
    background: var(--p-bg) !important;
    border: 1.5px solid var(--p-border-strong) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    color: var(--p-text) !important;
    font-size: 0.9rem !important;
    transition: all 0.2s !important;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--p-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* ════════════════════════════════════════════
   🌐 Dropdown Menu (Language Switcher Fix)
   ════════════════════════════════════════════ */

[role="listbox"],
[role="menu"],
ul[x-show] {
    background: var(--p-surface) !important;
    border: 1px solid var(--p-border-strong) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    padding: 6px !important;
}

[role="option"], [role="menuitem"] {
    padding: 8px 14px !important;
    border-radius: 8px !important;
    color: var(--p-text) !important;
    transition: all 0.15s !important;
    cursor: pointer;
}

[role="option"]:hover, [role="menuitem"]:hover {
    background: var(--p-surface-hover) !important;
    color: var(--p-primary) !important;
}

/* ════════════════════════════════════════════
   📱 Sidebar
   ════════════════════════════════════════════ */

aside, nav.sidebar {
    background: var(--p-surface) !important;
    border-right: 1px solid var(--p-border) !important;
}

aside a, nav a {
    border-radius: 10px !important;
    padding: 10px 14px !important;
    color: var(--p-text-muted) !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
}

aside a:hover, nav a:hover {
    background: var(--p-surface-hover) !important;
    color: var(--p-text) !important;
}

aside a.active, aside a[aria-current="page"] {
    background: linear-gradient(135deg, var(--p-primary), #4f46e5) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* ════════════════════════════════════════════
   📜 Scrollbar
   ════════════════════════════════════════════ */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--p-border-strong);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--p-primary); }

/* ════════════════════════════════════════════
   🔄 RTL
   ════════════════════════════════════════════ */

[dir="rtl"] [class*="ml-"] {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] [class*="mr-"] {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

/* ════════════════════════════════════════════
   🎬 Animations
   ════════════════════════════════════════════ */

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

main > div, main .grid > div {
    animation: fadeInUp 0.3s ease forwards;
}

main .grid > div:nth-child(1) { animation-delay: 0.05s; }
main .grid > div:nth-child(2) { animation-delay: 0.1s; }
main .grid > div:nth-child(3) { animation-delay: 0.15s; }
/* ════════════════════════════════════════════
   🚫 دکمه Cancel - با علامت خطر واضح
   ════════════════════════════════════════════ */

button[wire\:click*="cancel"],
button[wire\:click*="Cancel"],
form button:not([type="submit"]) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.2)) !important;
    border: 2px solid var(--p-danger) !important;
    color: var(--p-danger) !important;
    font-weight: 700 !important;
    position: relative;
    padding-right: 40px !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

button[wire\:click*="cancel"]::before,
button[wire\:click*="Cancel"]::before {
    content: '⚠️ ';
    margin-left: 8px;
    font-size: 1rem;
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

button[wire\:click*="cancel"]:hover {
    background: var(--p-danger) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5) !important;
    transform: translateY(-2px) scale(1.02);
}

/* ════════════════════════════════════════════
   🚫 مخفی کردن دکمه ادیت Name برای کاربر
   ════════════════════════════════════════════ */

/* دکمه ادیت کنار Name (آیکون مداد) */
main button[wire\:click*="editName"],
main button[wire\:click*="edit_name"],
main h2 + button,
main h3 + button.edit-btn,
main span:first-of-type + button:has(svg.w-4) {
    display: none !important;
}

/* مخفی کردن همه دکمه‌های کوچک ادیت در بخش Product Details */
.product-details button[wire\:click*="edit"],
[class*="product"] button[wire\:click*="edit"] {
    display: none !important;
}

/* ════════════════════════════════════════════
   💡 IP در تم تاریک - روشن‌تر و خواناتر
   ════════════════════════════════════════════ */

html.dark .ip-display-text,
.dark .ip-display-text {
    color: #93c5fd !important; /* روشن آبی */
    text-shadow: 0 0 10px rgba(147, 197, 253, 0.3);
}

html.dark code.text-blue-600,
html.dark code.text-blue-400,
.dark code.text-blue-600,
.dark code.text-blue-400 {
    color: #93c5fd !important;
    background: rgba(59, 130, 246, 0.15) !important;
}

html.dark code.text-purple-600,
html.dark code.text-purple-400,
.dark code.text-purple-600,
.dark code.text-purple-400 {
    color: #c4b5fd !important;
    background: rgba(168, 85, 247, 0.15) !important;
}

/* IP بزرگ در کارت Connection */
html.dark .ip-display-text.text-2xl,
.dark .ip-display-text.text-2xl {
    color: #bfdbfe !important;
    text-shadow: 0 0 15px rgba(147, 197, 253, 0.4);
}

/* ════════════════════════════════════════════
   🎯 Critical Actions Card - افکت خاص
   ════════════════════════════════════════════ */

.critical-actions-card {
    box-shadow: 0 4px 24px rgba(239, 68, 68, 0.08);
    transition: all 0.3s ease;
}

.critical-actions-card:hover {
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15);
}

html.dark .critical-actions-card,
.dark .critical-actions-card {
    box-shadow: 0 4px 24px rgba(239, 68, 68, 0.15);
}

/* ════════════════════════════════════════════
   🔘 دکمه‌های کپی و چشمی - همه یک سایز
   ════════════════════════════════════════════ */

main code + button,
main .font-mono + button,
main button[onclick*="clipboard"],
main button[onclick*="togglePassword"] {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}
body {
    background-color: var(--m3-surface) !important;
}

main {
    background-color: var(--m3-surface);
}
/* ════════════════════════════════════════════
   🎯 Accent رنگ اصلی (هماهنگ بین داشبورد و سایدبار)
   ════════════════════════════════════════════ */
:root {
    --cc-accent: #2563eb;       /* آبی تیره - تم روشن */
    --cc-accent-rgb: 37, 99, 235;
}
html.dark, .dark {
    --cc-accent: #00daf3;       /* فیروزه‌ای - تم تیره */
    --cc-accent-rgb: 0, 218, 243;
}
