/* Admin Panel CSS - Glassmorphism */

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

:root {
    --primary: #f97316;
    --secondary: #dc2626;
    --accent: #fbbf24;
    --dark: #0a0a0a;
    --gray-dark: #1a1a1a;
    --gray: #2a2a2a;
    --text: #fff;
    --text-muted: rgba(255,255,255,0.6);
    --border: rgba(255,255,255,0.08);
    --success: #22c55e;
    --error: #ef4444;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(249,115,22,0.12) 0%, transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(220,38,38,0.1) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a0a, #1a1a1a);
    z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* GLASS */
.glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
}

/* ===== LOGIN ===== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    overflow: hidden;
}

.login-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(249,115,22,0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(220,38,38,0.15) 0%, transparent 50%);
    z-index: -1;
    animation: bg-pulse 6s ease-in-out infinite;
}

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

.login-container { width: 100%; max-width: 440px; }

.login-card {
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-logo {
    margin-bottom: 2rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 22px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 10px 30px rgba(249,115,22,0.4);
}

.login-logo h1 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.login-logo p { color: var(--text-muted); font-size: 0.95rem; }

.login-form .form-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-form input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

.btn-primary-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 24px rgba(249,115,22,0.3);
    width: auto;
}

.login-form .btn-primary-admin { width: 100%; padding: 1rem; }

.btn-primary-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(249,115,22,0.4);
}

.login-hint {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: 10px;
    color: var(--accent);
    font-size: 0.85rem;
}

.login-hint code {
    background: rgba(0,0,0,0.4);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.back-link:hover { color: var(--primary); }

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.4);
    color: #4ade80;
}

.alert-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.4);
    color: #f87171;
}

/* ===== ADMIN LAYOUT ===== */
.admin-body { padding: 0; }

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(30px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 100;
    transition: 0.3s;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-header .logo-circle {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    border-radius: 14px;
    margin: 0;
    flex-shrink: 0;
}

.sidebar-header strong {
    display: block;
    font-size: 1rem;
}

.sidebar-header small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.sidebar-nav {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.nav-item {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.2rem;
    transition: 0.2s;
    position: relative;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(220,38,38,0.15));
    color: #fff;
    border-left: 3px solid var(--primary);
}

.nav-item i { width: 20px; text-align: center; }

.nav-item.logout { color: #f87171; margin-top: auto; }
.nav-item.logout:hover { background: rgba(239,68,68,0.1); }

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.8rem 0;
}

.badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-header {
    padding: 1.5rem 2rem;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.user-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    font-size: 0.9rem;
}

.user-info i { color: var(--primary); }

.mobile-toggle {
    display: none;
    padding: 0.5rem;
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.admin-content {
    padding: 2rem;
    max-width: 1400px;
}

/* ===== CARDS ===== */
.card {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card h3 i { color: var(--primary); }

.card p.muted { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.9rem; }

.welcome-card {
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.welcome-text h2 { margin-bottom: 0.3rem; }
.welcome-text p { color: var(--text-muted); }

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s;
}

.stat-card:hover { transform: translateY(-3px); border-color: var(--primary); }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}

.quick-action {
    padding: 1.2rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.quick-action i {
    font-size: 1.5rem;
    color: var(--primary);
}

.quick-action:hover {
    background: rgba(249,115,22,0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.quick-action span { font-size: 0.85rem; }

.msg-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.msg-preview {
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    transition: 0.2s;
}

.msg-preview.unread {
    background: rgba(249,115,22,0.08);
    border-left: 3px solid var(--primary);
}

.msg-preview:hover { background: rgba(255,255,255,0.06); }

.msg-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.msg-info strong { display: block; font-size: 0.95rem; }
.msg-info p { color: var(--text-muted); font-size: 0.85rem; margin: 0.2rem 0; }
.msg-info small { color: var(--text-muted); font-size: 0.75rem; }

.btn-link {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: 0.2s;
}

.btn-link:hover { background: rgba(249,115,22,0.1); }

/* ===== FORMS ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group { margin-bottom: 0.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group label i { color: var(--primary); margin-right: 0.3rem; }

.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=tel],
.form-group input[type=url],
.form-group input[type=password],
.form-group input[type=number],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.2s;
}

/* Dropdown options - dark background for readability everywhere */
.form-group select option,
select option,
.repeater-row select option {
    background: #1a1a1a !important;
    color: #fff !important;
}
select option:checked,
select option:hover {
    background: #2a2a2a !important;
    color: #fbbf24 !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.06);
}

.form-group textarea { resize: vertical; }

.form-actions {
    text-align: right;
    padding: 1rem 0;
    position: sticky;
    bottom: 1rem;
    z-index: 10;
}

.form-actions .btn-primary-admin {
    box-shadow: 0 10px 30px rgba(249,115,22,0.4);
}

/* COLOR INPUT */
.color-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-input input[type=color] {
    width: 50px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
    padding: 4px;
}

.color-input input[type=text] {
    flex: 1;
    text-transform: uppercase;
}

/* TOGGLE */
.toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    user-select: none;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    transition: 0.2s;
}

.toggle:hover { background: rgba(255,255,255,0.07); }

.toggle input { display: none; }

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    transition: 0.3s;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* RANGE */
.form-group input[type=range] {
    width: 100%;
    accent-color: var(--primary);
}

/* ===== PRESETS ===== */
.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.preset-card {
    padding: 1rem;
    background: rgba(255,255,255,0.04);
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.preset-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.preset-colors {
    display: flex;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.preset-colors span { flex: 1; }

.preset-card p { font-size: 0.85rem; }

/* PREVIEW */
.preview-area {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    padding: 2rem;
    border-radius: 14px;
    text-align: center;
}

.preview-glass {
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
}

.preview-glass h4 { margin-bottom: 0.5rem; }
.preview-glass p { color: rgba(255,255,255,0.7); margin-bottom: 1rem; }

.preview-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* TABS */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.tab {
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.2s;
    background: none;
    font-weight: 500;
}

.tab:hover { color: #fff; background: rgba(255,255,255,0.04); }

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

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

/* REPEATER */
.repeater-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.repeater-row input,
.repeater-row select,
.repeater-row textarea {
    flex: 1;
    padding: 0.6rem 0.9rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
}

.repeater-row.repeater-col { flex-direction: column; align-items: stretch; }
.repeater-row.repeater-col .form-grid { width: 100%; }

.btn-add {
    padding: 0.7rem 1.4rem;
    background: rgba(34,197,94,0.15);
    border: 1px dashed rgba(34,197,94,0.4);
    border-radius: 10px;
    color: #4ade80;
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add:hover {
    background: rgba(34,197,94,0.25);
    border-style: solid;
}

.btn-remove {
    padding: 0.5rem 0.7rem;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    color: #f87171;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-remove:hover { background: rgba(239,68,68,0.3); }

/* PACKAGE EDITOR */
.package-editor { padding: 2rem; }

.package-header-edit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.package-header-edit h3 { margin: 0; }

/* IMAGE MANAGEMENT */
.special-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.special-image-card {
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
}

.special-preview {
    aspect-ratio: 3/4;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    margin-bottom: 0.8rem;
}

.special-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-image-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.special-image-card p.small { font-size: 0.8rem; }

.file-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: 0.2s;
}

.file-btn:hover { transform: translateY(-2px); }
.file-btn input[type=file] { display: none; }

.upload-area {
    padding: 3rem;
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.upload-area:hover, .upload-area.dragging {
    border-color: var(--primary);
    background: rgba(249,115,22,0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-area p { font-size: 1.1rem; margin-bottom: 0.3rem; }
.upload-area small { color: var(--text-muted); }
.upload-area span { display: block; margin-top: 0.5rem; color: var(--accent); font-size: 0.9rem; }

.images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
}

.image-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
    transition: 0.2s;
}

.image-thumb:hover { transform: scale(1.02); border-color: var(--primary); }

.image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.filename {
    font-size: 0.7rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.btn-icon-danger {
    width: 28px;
    height: 28px;
    background: rgba(239,68,68,0.2);
    border: 1px solid rgba(239,68,68,0.4);
    border-radius: 6px;
    color: #f87171;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
}

.btn-icon-danger:hover { background: rgba(239,68,68,0.4); }

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.modal.active { display: flex; }

.modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
}

/* GALLERY EDITOR ROWS */
.gallery-row {
    align-items: stretch;
}

.gallery-row-preview {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.gallery-row-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-row-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* MESSAGES */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-card {
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.message-card.unread {
    border-color: var(--primary);
    background: rgba(249,115,22,0.05);
}

.msg-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.msg-meta { flex: 1; }
.msg-meta strong { display: block; }
.msg-meta small { color: var(--text-muted); }

.badge-new {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.msg-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.msg-fields i { color: var(--primary); margin-right: 0.3rem; }
.msg-fields a { color: var(--primary); }

.msg-content {
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.msg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -280px;
        height: 100vh;
        z-index: 200;
    }
    .sidebar.open { left: 0; }
    .mobile-toggle { display: inline-flex; }
    .form-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .admin-content { padding: 1rem; }
    .admin-header { padding: 1rem; }
    .card { padding: 1.2rem; }
    .login-card { padding: 2rem 1.5rem; }
    .tabs { overflow-x: auto; flex-wrap: nowrap; }
    .tab { white-space: nowrap; }
}
