:root {
    --primary: #6366f1;
    --primary-light: #e0e7ff;
    --success: #10b981;
    --success-light: #f0fdf4;
    --warning: #f59e0b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

body {
    background: #f1f5f9;
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.6;
}

.full-screen-card {
    padding: 12px 10px;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header Hero */
.header-hero {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    padding: 15px 12px;
    border-radius: 14px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 15px -5px rgba(99, 102, 241, 0.3);
    margin-bottom: 4px;
}

.header-hero h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-hero p {
    margin: 2px 0 0;
    opacity: 0.9;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Section Labels */
.section-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    padding-left: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Visual Cards */
.card-visual {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.field {
    margin-bottom: 10px;
}

/* Compact Copy Box */
.copy-box {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f8fafc;
    color: var(--text-main);
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.copy-box:active {
    transform: scale(0.98);
}

.copy-box.visited-input {
    color: var(--success) !important;
    border-color: var(--success) !important;
    background-color: var(--success-light) !important;
}

/* Primary Action Button */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    color: #fff;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 6px 12px -3px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-success {
    background: var(--success);
    color: #fff;
    width: 100%;
    height: 40px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    margin-top: 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.acc-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #f1f5f9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#copyToast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* --- DASHBOARD ADMIN TWO-TONE SYSTEM --- */
.dashboard-container {
    display: flex;
    height: 100vh;
    background: #f1f5f9;
    color: var(--text-main);
}

.sidebar {
    width: 280px;
    background: #0f172a;
    color: #f1f5f9;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #6366f1;
    letter-spacing: 1.5px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.user-info {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#slugList {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.slug-item {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.slug-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(4px);
}

.slug-item.active {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.5);
}

.content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.admin-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.admin-card h3 {
    margin: 0 0 20px 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

textarea {
    width: 100%;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    background: #f8fafc;
    resize: vertical;
    min-height: 120px;
}

textarea:focus {
    border-color: #6366f1;
    background: #fff;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
}

.item-row:hover {
    background: #f8fafc;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-outline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
}

@media (max-width: 900px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .content-area {
        padding: 20px;
    }
}