/* Domains Watch - Main Stylesheet */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #0ea5e9;
    --secondary-dark: #0284c7;
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --dark-border: #475569;
    
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    
    --font-hebrew: 'Heebo', 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--primary-glow);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-hebrew);
    background: var(--dark);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
    direction: rtl;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-100px) translateX(50px); opacity: 0.6; }
    50% { transform: translateY(-50px) translateX(-30px); opacity: 0.3; }
    75% { transform: translateY(-150px) translateX(20px); opacity: 0.5; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--dark-light);
    color: var(--white);
    border: 1px solid var(--dark-border);
}

.btn-secondary:hover {
    background: var(--dark-lighter);
    border-color: var(--primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Cards */
.card {
    background: var(--dark-light);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dark-lighter);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-light);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--white);
    background: var(--dark);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: var(--gray);
}

.form-control:disabled {
    background: var(--dark-lighter);
    cursor: not-allowed;
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    direction: ltr;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--dark-lighter);
    border: 1px solid var(--dark-lighter);
    border-left: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--gray-light);
    font-weight: 500;
}

.phone-input {
    flex: 1;
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
    direction: ltr;
    text-align: left;
}

/* Toggle Switch - Base styles moved to Modern Toggle Switch section below */

/* Alerts / Toast */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--dark-light);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    min-width: 300px;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast.info { border-color: var(--secondary); }

.toast-icon {
    font-size: 1.5rem;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--secondary); }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 16px;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--dark-light);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius-xl);
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--dark-lighter);
    position: sticky;
    top: 0;
    background: var(--dark-light);
    z-index: 10;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border: 1px solid var(--dark-lighter);
    border-radius: 50%;
    color: var(--gray-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .modal {
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        animation: slideUp 0.3s ease;
    }
    
    .modal-header {
        padding: 16px 20px;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dark-lighter);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 99999;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--dark-lighter) 25%, var(--dark-light) 50%, var(--dark-lighter) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-primary { background: rgba(99, 102, 241, 0.2); color: var(--primary-light); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.badge-secondary { background: rgba(100, 116, 139, 0.2); color: var(--gray-light); }

/* Tables */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid var(--dark-lighter);
}

.table th {
    background: var(--dark);
    font-weight: 600;
    color: var(--gray-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

/* Stats Card */
.stat-card {
    background: linear-gradient(135deg, var(--dark-light), var(--dark));
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }

.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Settings Page Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.settings-card {
    background: linear-gradient(145deg, var(--dark-light), var(--dark));
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
}

.settings-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.settings-card-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    padding: 20px 24px;
    border-bottom: 1px solid var(--dark-lighter);
    display: flex;
    align-items: center;
    gap: 14px;
}

.settings-card-header .icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.settings-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.settings-card-header p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: var(--gray);
}

.settings-card-body {
    padding: 24px;
}

.settings-form-group {
    margin-bottom: 20px;
}

.settings-form-group:last-child {
    margin-bottom: 0;
}

.settings-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-light);
    margin-bottom: 8px;
}

.settings-form-group .form-control {
    background: var(--dark);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--white);
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition);
}

.settings-form-group .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.settings-form-group .form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.settings-form-group .input-hint {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Toggle Settings */
.toggle-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-setting:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.toggle-setting:first-child {
    padding-top: 0;
}

.toggle-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
}

.toggle-info p {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Modern Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--dark);
    border: 2px solid var(--dark-lighter);
    border-radius: 14px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gray-light);
    top: 2px;
    right: 2px;
    left: auto;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--success), #059669);
    border-color: var(--success);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(-24px);
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Plan Card */
.plan-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.plan-info {
    flex: 1;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-details {
    font-size: 0.85rem;
    color: var(--gray);
}

.plan-details span {
    color: var(--primary);
    font-weight: 600;
}

/* Danger Zone */
.danger-card {
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.danger-card .settings-card-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
}

.danger-card .settings-card-header .icon {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.danger-card .settings-card-header h3 {
    color: var(--danger);
}

.danger-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.danger-warning .warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.danger-warning p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-light);
    line-height: 1.6;
}

/* Admin Settings Specific */
.admin-settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--dark);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.admin-settings-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.admin-settings-tab:hover {
    color: var(--white);
    background: var(--dark-light);
}

.admin-settings-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.system-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.system-stat:last-child {
    border-bottom: none;
}

.system-stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.system-stat-value {
    font-weight: 600;
    color: var(--white);
}

.system-stat-value.success { color: var(--success); }
.system-stat-value.warning { color: var(--warning); }
.system-stat-value.danger { color: var(--danger); }

/* Plan Limits */
.plan-limits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-limit-item {
    background: var(--dark);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--dark-lighter);
}

.plan-limit-header {
    margin-bottom: 12px;
}

.plan-limit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-limit-badge.free {
    background: rgba(107, 114, 128, 0.2);
    color: var(--gray-light);
}

.plan-limit-badge.basic {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.plan-limit-badge.pro {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

/* Input hint */
.input-hint {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ====================================
   MODAL COMPONENT STYLES
   ==================================== */

/* Domain Details Grid */
.domain-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.detail-card {
    background: var(--dark);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--dark-lighter);
}

.detail-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    word-break: break-word;
}

/* Domain Status Banner */
.domain-status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.domain-status-banner.available {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.domain-status-banner.taken {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.domain-status-banner .status-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.domain-status-banner .status-text h4 {
    margin: 0;
    color: var(--white);
    font-size: 1.1rem;
}

.domain-status-banner .status-text p {
    margin: 4px 0 0;
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--dark);
    border-radius: var(--radius-sm);
    border: 1px solid var(--dark-lighter);
}

.history-item .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.history-item .status-dot.available { background: var(--success); }
.history-item .status-dot.taken { background: var(--danger); }
.history-item .status-dot.pending { background: var(--warning); }

.history-item .history-info {
    flex: 1;
    min-width: 0;
}

.history-item .history-status {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.history-item .history-time {
    font-size: 0.8rem;
    color: var(--gray);
}

.history-item .history-source {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: var(--dark-lighter);
    border-radius: 4px;
    color: var(--gray-light);
    white-space: nowrap;
}

/* Empty State */
.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-history .icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* User Details Grid */
.user-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.user-detail-stat {
    background: var(--dark);
    padding: 14px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--dark-lighter);
}

.user-detail-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.user-detail-stat .label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 4px;
}

/* User Domains List */
.user-domains-list {
    background: var(--dark);
    border-radius: var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--dark-lighter);
}

.user-domain-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--dark-lighter);
    gap: 12px;
}

.user-domain-item:last-child {
    border-bottom: none;
}

/* Workflow Card */
.workflow-card {
    background: var(--dark);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.workflow-status {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.workflow-status.active {
    background: rgba(16, 185, 129, 0.2);
}

.workflow-status.inactive {
    background: rgba(239, 68, 68, 0.2);
}

.workflow-info {
    flex: 1;
    min-width: 0;
}

.workflow-name {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
    word-break: break-all;
}

.workflow-meta {
    font-size: 0.8rem;
    color: var(--gray);
}

.workflow-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Stats Table */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.stats-table th, .stats-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid var(--dark-lighter);
}

.stats-table th {
    background: var(--dark);
    font-weight: 600;
    position: sticky;
    top: 0;
}

/* Modal Action Buttons */
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions .btn {
    flex: 1;
    min-width: 140px;
}

/* ====================================
   RESPONSIVE BREAKPOINTS
   ==================================== */

/* Tablet */
@media (max-width: 992px) {
    .modal-content {
        max-width: 90%;
    }
    
    .user-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workflow-card {
        flex-wrap: wrap;
    }
    
    .workflow-actions {
        width: 100%;
        margin-top: 12px;
        justify-content: flex-start;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .card {
        padding: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card {
        flex-direction: column;
        text-align: center;
    }
    
    /* Modal Mobile Styles */
    .modal {
        padding: 16px;
        margin: 8px;
        width: calc(100% - 16px);
        max-height: 95vh;
    }
    
    .modal-content {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* Domain Details Mobile */
    .domain-details-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .detail-card {
        padding: 12px;
    }
    
    .detail-value {
        font-size: 0.95rem;
    }
    
    .domain-status-banner {
        padding: 12px;
    }
    
    .domain-status-banner .status-icon {
        font-size: 1.5rem;
    }
    
    .domain-status-banner .status-text h4 {
        font-size: 1rem;
    }
    
    .domain-status-banner .status-text p {
        font-size: 0.8rem;
    }
    
    /* History Mobile */
    .history-item {
        padding: 10px;
        gap: 10px;
    }
    
    .history-item .history-status {
        font-size: 0.9rem;
    }
    
    .history-item .history-time {
        font-size: 0.75rem;
    }
    
    .history-item .history-source {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    /* User Details Mobile */
    .user-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .user-detail-stat {
        padding: 12px 8px;
    }
    
    .user-detail-stat .value {
        font-size: 1.25rem;
    }
    
    .user-detail-stat .label {
        font-size: 0.7rem;
    }
    
    .user-domains-list {
        max-height: 150px;
    }
    
    .user-domain-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* Workflow Mobile */
    .workflow-card {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .workflow-status {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .workflow-info {
        width: 100%;
    }
    
    .workflow-name {
        font-size: 0.95rem;
    }
    
    .workflow-meta {
        font-size: 0.75rem;
    }
    
    .workflow-actions {
        width: 100%;
        margin-top: 10px;
        justify-content: flex-start;
    }
    
    .workflow-actions .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* Stats Table Mobile */
    .stats-table {
        font-size: 0.8rem;
    }
    
    .stats-table th, .stats-table td {
        padding: 8px 6px;
    }
    
    /* Modal Actions Mobile */
    .modal-actions {
        gap: 8px;
    }
    
    .modal-actions .btn {
        min-width: 100%;
        flex: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .modal {
        padding: 12px;
        margin: 4px;
        width: calc(100% - 8px);
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .user-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .user-detail-stat {
        padding: 10px 6px;
    }
    
    .user-detail-stat .value {
        font-size: 1.1rem;
    }
    
    .domain-status-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .history-item {
        flex-wrap: wrap;
    }
    
    .history-item .history-source {
        margin-top: 6px;
        width: 100%;
        text-align: center;
    }
}

