/* ==========================================================================
   CUMHURİYET ROLEPLAY - APPLE visionOS & macOS LUXURY LIQUID GLASS THEME
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* Apple Palette */
    --apple-bg: #000000;
    --apple-red: #ff3b30;
    --apple-red-hover: #ff453a;
    --apple-red-glow: rgba(255, 59, 48, 0.45);
    --apple-gold: #ffd60a;
    --apple-green: #30d158;
    --apple-blue: #0a84ff;
    --apple-purple: #bf5af2;
    
    /* Apple Liquid Glass (visionOS / macOS Sonoma) */
    --glass-surface: rgba(10, 12, 18, 0.18);
    --glass-surface-hover: rgba(18, 22, 32, 0.35);
    --glass-subtle: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-border-light: rgba(255, 255, 255, 0.30);
    --glass-blur: blur(20px) saturate(180%);
    --squircle-radius: 22px;
    --squircle-inner: 16px;
    
    /* Typography */
    --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", "Inter", sans-serif;
    --font-mono: "SF Mono", "Space Grotesk", monospace;
    
    --text-primary: #ffffff;
    --text-secondary: rgba(235, 235, 245, 0.68);
    --text-tertiary: rgba(235, 235, 245, 0.38);

    /* Transitions & Apple Springs */
    --spring-quick: 0.22s cubic-bezier(0.25, 1, 0.5, 1);
    --spring-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--apple-bg);
    color: var(--text-primary);
    font-family: var(--font-apple);
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Apple Custom Cursor (visionOS Pointer Dot) */
.custom-cursor {
    position: fixed;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.06s ease, width 0.25s var(--spring-bounce), height 0.25s var(--spring-bounce), background 0.2s ease, border-color 0.2s ease;
    z-index: 99999;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.custom-cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100000;
}

/* Apple Dynamic Toast Pill */
#toast-notification {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px) scale(0.9);
    background: rgba(30, 34, 45, 0.85);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-light);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(48, 209, 88, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s var(--spring-bounce);
    z-index: 10000;
    pointer-events: none;
}

#toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

#toast-notification i {
    color: var(--apple-green);
    font-size: 1rem;
}

/* -------------------------------------------------------------
   BACKGROUND SYSTEM & LIQUID MESH
   ------------------------------------------------------------- */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: #0b0e14 url('../img/game_bg1.jpg') no-repeat center center / cover;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1.04);
    filter: none;
    transition: opacity 1.8s ease-in-out, transform 12s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

#video-bg-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    display: none;
    overflow: hidden;
    z-index: 1;
}

#video-bg-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%) scale(1.15);
    pointer-events: none;
    border: none;
}

#video-bg-wrap video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%) scale(1.08);
    object-fit: cover;
    pointer-events: none;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 65%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    z-index: 2;
}

.scanlines {
    display: none;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

/* -------------------------------------------------------------
   MAIN CONTAINER & DYNAMIC ISLAND BAR
   ------------------------------------------------------------- */
#app {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 36px;
    z-index: 10;
}

/* Dynamic Top Bar (macOS Menu / Dynamic Island Style) */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 64px;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 0 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: var(--spring-quick);
}

.brand-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.brand-mini-icon {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 4px 10px rgba(255, 59, 48, 0.4));
    transition: var(--spring-bounce);
}

.brand-mini:hover .brand-mini-icon {
    transform: scale(1.12) rotate(6deg);
}

.brand-mini-text h1 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

.brand-mini-text span {
    font-size: 0.68rem;
    color: var(--apple-red);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Apple Segmented Navigation Pill */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-apple);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.1px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s var(--spring-smooth);
}

.nav-btn i {
    font-size: 0.85rem;
    opacity: 0.75;
    transition: var(--spring-quick);
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.nav-btn.active i {
    color: var(--apple-red-hover);
    opacity: 1;
}

/* Header Right Widget */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(48, 209, 88, 0.12);
    border: 1px solid rgba(48, 209, 88, 0.25);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--apple-green);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--apple-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--apple-green);
    animation: pulseGlow 2s infinite;
}

.live-time {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------------
   MAIN STAGE (APPLE BENTO GRID & SPATIAL PANELS)
   ------------------------------------------------------------- */
.main-stage {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    height: calc(100vh - 200px);
    margin: 12px 0;
}

/* Left Bento Hero Card (Ultra Transparan - Arka Plan Videosu Net Görünür) */
.left-hero-card {
    background: rgba(6, 8, 12, 0.08);
    backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--squircle-radius);
    padding: 26px 22px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--spring-smooth), box-shadow 0.4s var(--spring-smooth);
}

.left-hero-card:hover {
    background: rgba(6, 8, 12, 0.15);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.left-hero-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.logo-wrapper {
    width: 255px;
    height: 255px;
    margin-top: 48px;
    margin-bottom: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 16px 35px rgba(255, 59, 48, 0.38)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    animation: floatLogo 5s ease-in-out infinite;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.server-hero-info h2 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff;
    margin-top: 6px;
}

.server-hero-info p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.4;
}

/* Apple Tech Specs Grid */
.server-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin: 10px 0;
}

.stat-item {
    background: var(--glass-subtle);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--squircle-inner);
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s var(--spring-quick);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-item span.stat-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.stat-item span.stat-val {
    font-family: var(--font-apple);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

/* Apple Action Pills (AirDrop / Discord Style) */
.social-links-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--spring-smooth);
}

.social-btn small {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
}

.social-btn:hover small {
    color: #fff;
}

.social-btn.discord:hover {
    background: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}

.social-btn.teamspeak:hover {
    background: #0071e3;
    border-color: #0071e3;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35);
}

/* Right Content Screen (Apple visionOS Spatial Glass - Açılışta gizli, menüye tıklanınca açılır) */
.content-screen {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--squircle-radius);
    padding: 30px 28px 24px 28px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(35px) scale(0.97);
    transition: opacity 0.35s var(--spring-smooth), transform 0.35s var(--spring-smooth), visibility 0.35s ease;
    pointer-events: none;
}

.content-screen.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.close-content-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    color: #ffffff;
    padding: 6px 14px;
    font-family: var(--font-apple);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s var(--spring-smooth);
    z-index: 100;
}

.close-content-btn:hover {
    background: rgba(255, 59, 48, 0.35);
    border-color: rgba(255, 59, 48, 0.65);
    transform: scale(1.04);
}

/* Tab Views */
.tab-view {
    display: none;
    animation: appleTabFade 0.35s var(--spring-smooth) forwards;
}

.tab-view.active {
    display: block;
}

/* TAB 1: ANASAYFA (Apple Keynote Bento Style) */
.home-banner {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.18), rgba(20, 24, 32, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.home-banner h3 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #fff;
}

.home-banner h3 span {
    background: linear-gradient(135deg, #ff3b30, #ff9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-banner p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 5px;
    max-width: 90%;
    line-height: 1.45;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.feature-card {
    background: var(--glass-subtle);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s var(--spring-bounce);
}

.feature-card:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-red-hover);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card h4 {
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
}

.feature-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.shortcut-tips-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 16px;
}

.key-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.78rem;
    color: #ffffff;
}

/* TAB 2: GÜNCELLEMELER (iOS Software Update Style) */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.update-entry {
    background: var(--glass-subtle);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px 22px;
    transition: all 0.25s var(--spring-quick);
}

.update-entry:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.update-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.update-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.update-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.badge-new { background: rgba(255, 59, 48, 0.25); color: #ff453a; border: 1px solid rgba(255, 59, 48, 0.5); }
.badge-update { background: rgba(10, 132, 255, 0.25); color: #70b4ff; border: 1px solid rgba(10, 132, 255, 0.5); }
.badge-fix { background: rgba(255, 159, 10, 0.25); color: #ffb340; border: 1px solid rgba(255, 159, 10, 0.5); }

.update-version {
    font-family: var(--font-apple);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.update-date {
    font-size: 0.76rem;
    color: var(--text-tertiary);
}

.update-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.update-items-list {
    list-style: none;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.update-items-list li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-items-list li::before {
    content: '•';
    color: var(--apple-red);
    font-size: 1.1rem;
}

/* TAB 3: KADROMUZ (Apple ID Profile Cards) */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.staff-card {
    background: var(--glass-subtle);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.3s var(--spring-bounce);
}

.staff-card:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.staff-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.staff-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.staff-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.staff-role-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin: 3px 0 4px 0;
}

.role-owner { background: rgba(255, 59, 48, 0.2); color: #ff6b6b; border: 1px solid rgba(255, 59, 48, 0.4); }
.role-dev { background: rgba(10, 132, 255, 0.2); color: #70b4ff; border: 1px solid rgba(10, 132, 255, 0.4); }
.role-admin { background: rgba(255, 214, 10, 0.2); color: #ffd60a; border: 1px solid rgba(255, 214, 10, 0.4); }
.role-mod { background: rgba(48, 209, 88, 0.2); color: #30d158; border: 1px solid rgba(48, 209, 88, 0.4); }

.staff-discord {
    font-size: 0.76rem;
    color: var(--text-tertiary);
}

/* TAB 4: KURALLAR (iOS Spotlight Search & Cards) */
.rules-search-wrap {
    margin-bottom: 16px;
    position: relative;
}

.rules-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 16px 10px 40px;
    color: #fff;
    font-family: var(--font-apple);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.25s var(--spring-smooth);
}

.rules-search-input:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
}

.rules-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.rules-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rule-category-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.rules-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.rule-card {
    background: var(--glass-subtle);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    transition: all 0.2s var(--spring-quick);
}

.rule-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.rule-card h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.rule-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

/* -------------------------------------------------------------
   BOTTOM BAR (APPLE MUSIC PLAYER + iOS SOFTWARE UPDATE PROGRESS + SIRI TIPS)
   ------------------------------------------------------------- */
.bottom-bar {
    display: grid;
    grid-template-columns: 350px 1fr 320px;
    gap: 20px;
    align-items: center;
    height: 78px;
}

/* Left: Apple Music Player Lockscreen Capsule */
.music-player-widget {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.vinyl-disc {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #222736, #0e1118);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px; /* Apple Music Album Art Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-red-hover);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s var(--spring-bounce);
}

.vinyl-disc.playing {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(255, 59, 48, 0.35);
}

.music-details {
    flex: 1;
    overflow: hidden;
}

.song-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.1px;
}

.song-artist {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.ctrl-btn:hover {
    color: #fff;
}

.ctrl-btn.play-btn {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform 0.2s var(--spring-bounce);
}

.ctrl-btn.play-btn:hover {
    transform: scale(1.15);
}

.vol-slider-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
}

.vol-slider-wrap input[type="range"] {
    width: 50px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.vol-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

.sound-bars-wrap {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.sound-bar {
    width: 2.5px;
    height: 3px;
    background: var(--apple-red-hover);
    border-radius: 2px;
}

.vinyl-disc.playing ~ .music-details .sound-bar {
    animation: barBounce 0.8s infinite ease-in-out alternate;
}

.sound-bar:nth-child(1) { animation-delay: 0.1s; }
.sound-bar:nth-child(2) { animation-delay: 0.3s; }
.sound-bar:nth-child(3) { animation-delay: 0.2s; }
.sound-bar:nth-child(4) { animation-delay: 0.4s; }

/* Center: iOS Software Update Style Progress */
.progress-center-widget {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-status-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-spinner {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spinDisc 0.8s linear infinite;
}

.progress-percentage {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    width: 12%;
    height: 100%;
    background: linear-gradient(90deg, #ff3b30, #ff9500, #30d158);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(255, 59, 48, 0.5);
    transition: width 0.3s ease;
}

/* Right: Apple Intelligence Style Tips Pill */
.tips-right-widget {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    height: 64px;
}

.tips-icon-wrap {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2), rgba(191, 90, 242, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.tips-text-content {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.35;
    transition: opacity 0.4s ease;
}

/* -------------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------------- */
@keyframes appleTabFade {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spinDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes barBounce {
    0% { height: 2px; }
    100% { height: 14px; }
}

/* Custom Scrollbar for Content Panel */
.content-screen::-webkit-scrollbar {
    width: 5px;
}

.content-screen::-webkit-scrollbar-track {
    background: transparent;
}

.content-screen::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.content-screen::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}
