/* =========================================================
   A.M Station | PS4 Exploit Host & GoldHEN Center
   Optimized for PS4 Browser, Desktop & Mobile
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;600;700;900&family=Inter:wght@400;600;700;900&display=swap');

:root {
    --bg-dark: #080b12;
    --bg-card: rgba(16, 22, 38, 0.85);
    --border-card: rgba(255, 255, 255, 0.1);
    --primary: #f43f5e;
    --primary-glow: rgba(244, 63, 94, 0.35);
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.4);
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.35);
    --blue: #2563eb;
    --blue-hover: #3b82f6;
    --green: #10b981;
    --purple: #a855f7;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

html, body {
    min-height: 100vh;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(244, 63, 94, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0e17;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* Header & Top Bar */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 20px;
    background: rgba(16, 22, 38, 0.7);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.brand-badge span {
    color: var(--primary);
}

.nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-back-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
    transform: translateY(-2px);
}

/* Main Titles & Status Display */
h1 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#msgs, #msgs2 {
    display: inline-block;
    min-height: 48px;
    padding: 10px 24px;
    margin: 12px auto 24px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 30px;
    color: #38bdf8;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 16px 0 24px;
}

/* Sections & Grid */
#menu, #progress, #tools, #lnx, #mods, #crypto {
    max-width: 980px;
    margin: 0 auto;
}

.section-title {
    font-size: 19px;
    font-weight: 700;
    color: #fbbf24;
    margin: 20px 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.buttons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* General Buttons */
.btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    min-width: 210px;
    height: 52px;
    padding: 6px 16px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.btn:hover, .btn:focus {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Multi FW Golden Button */
.btn-multi {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35) !important;
}

.btn-multi:hover, .btn-multi:focus {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    border-color: #fde68a !important;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.6) !important;
    transform: translateY(-2px) scale(1.02);
}

/* Online / Green Button */
.btn-onln {
    background: linear-gradient(135deg, #065f46 0%, #059669 100%) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.btn-onln:hover, .btn-onln:focus {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border-color: #6ee7b7 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
}

/* Toolbox / Red Button */
.btn-toolbox {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.btn-toolbox:hover, .btn-toolbox:focus {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    border-color: #fca5a5 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5) !important;
}

/* TikTok Barcodes Container & Cards */
.tiktok-barcodes-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px auto 36px;
    max-width: 800px;
}

.tiktok-barcode-card {
    background: rgba(16, 22, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px 20px;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tiktok-barcode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00f2fe 0%, #fe0979 100%);
}

.tiktok-barcode-card:hover {
    transform: translateY(-5px);
    border-color: rgba(254, 9, 121, 0.5);
    box-shadow: 0 15px 35px rgba(254, 9, 121, 0.25);
}

.tiktok-card-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.tiktok-card-header i {
    color: #00f2fe;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
}

.qr-img-wrapper {
    background: #ffffff;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.qr-img-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(254, 9, 121, 0.4);
}

.qr-img {
    width: 170px;
    height: 170px;
    display: block;
    border-radius: 8px;
}

.qr-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.tiktok-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #181b2a 0%, #262c45 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.tiktok-btn:hover {
    background: linear-gradient(90deg, #00f2fe 0%, #fe0979 100%);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(254, 9, 121, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

/* Footer */
.host-footer {
    margin-top: 36px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsiveness */
@media (max-width: 768px) {
    .btn {
        width: 100%;
        max-width: 320px;
    }
    .top-header {
        justify-content: center;
    }
    #msgs, #msgs2 {
        font-size: 16px;
        padding: 8px 16px;
    }
    .tiktok-barcode-card {
        width: 100%;
        max-width: 300px;
    }
}