:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #a855f7;
    --accent: #22d3ee;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Cairo', 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.12), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.12), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.05), transparent 60%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    padding: 5rem 0 3rem;
    text-align: center;
}

header h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

header h1 span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header p {
    color: var(--text-dim);
    font-size: 1.3rem;
    font-weight: 300;
}

header .arabic-sub {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Section Styles */
.card-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.section-title i {
    color: var(--primary);
}

/* Grid Layout */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.shortcuts-grid.solo {
    grid-template-columns: 1fr;
}

/* Shortcut Item Styles */
.shortcut-item {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.shortcut-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px -15px var(--primary-glow);
    background: rgba(45, 55, 72, 0.8);
}

.shortcut-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
    opacity: 0.4;
    transition: width 0.3s;
}

.shortcut-item:hover::before {
    width: 8px;
    opacity: 1;
}

.shortcut-item.danger::before { background: var(--danger); }
.shortcut-item.warning::before { background: var(--warning); }
.shortcut-item.script::before { background: var(--accent); }

.shortcut-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    width: 85%;
}

.shortcut-info .desc, .section-title, .arabic-sub {
    font-family: 'Tajawal', 'Cairo', 'Outfit', sans-serif !important;
}

.shortcut-info .desc {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
}

.shortcut-info .cmd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cmd.scrollable {
    white-space: nowrap;
    overflow-x: auto;
    display: block;
}

.cmd.large {
    font-size: 0.85rem;
}

/* Copy Button */
.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 44px;
    height: 44px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(5deg);
}

.copy-btn.mini {
    width: auto;
    height: auto;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.btn-group {
    display: flex;
    gap: 0.75rem;
}

/* Dynamic CMD Input */
.dynamic-cmd {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.dynamic-cmd input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
    color: var(--accent);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.dynamic-cmd input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.dynamic-cmd input::placeholder {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.85rem;
}

#url-preview-text {
    color: var(--accent);
    font-weight: 600;
}

/* Multi-line */
.multi-line-cmd {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 15px 35px -5px var(--primary-glow);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 { font-size: 2.8rem; }
    .shortcuts-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1.5rem; }
}
