/* ==========================================
   Mango Privacy Policy Design System & CSS
   ========================================== */

:root {
    --bg-main: #090B0F;
    --bg-card: #121620;
    --bg-card-hover: #191E2C;
    --bg-panel: #161B27;
    --primary: #FF7A00;
    --primary-gradient: linear-gradient(135deg, #FF9900 0%, #FF5E00 100%);
    --primary-glow: rgba(255, 122, 0, 0.25);
    --secondary: #FFB800;
    --accent-purple: #8B5CF6;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --text-highlight: #FF9E3D;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(255, 122, 0, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.dark-theme {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

/* Background Glowing Blobs */
.blob {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    opacity: 0.4;
    pointer-events: none;
    animation: pulse 12s infinite alternate;
}

.blob-orange {
    top: -150px;
    left: -150px;
    background: var(--primary);
}

.blob-purple {
    top: 50%;
    right: -150px;
    background: var(--accent-purple);
    animation-delay: 4s;
}

@keyframes pulse {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(50px, 30px);
    }
}

/* Header Section */
.main-header {
    background: rgba(18, 22, 32, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-glow {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-panel);
    border: 2px solid rgba(255, 122, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.2);
}

.logo-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,122,0,0.2) 0%, transparent 70%);
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.brand-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn-print {
    background: rgba(255, 122, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 122, 0, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-print:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-text {
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.badge {
    background: rgba(255, 122, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 122, 0, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Quick Summary Grid */
.quick-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 122, 0, 0.2);
    box-shadow: var(--shadow-md);
}

.summary-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 122, 0, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.summary-card:hover .card-icon {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.summary-card:hover .card-icon i {
    color: white;
}

.summary-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.summary-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.summary-card p strong {
    color: var(--text-main);
}

.card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.summary-card:hover .card-link {
    color: var(--secondary);
    gap: 0.75rem;
}

/* Utility Bar: Metadata & Search */
.utility-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.metadata {
    display: flex;
    gap: 1.5rem;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary);
}

.meta-item strong {
    color: var(--text-main);
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: rgba(255, 122, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.1);
    background: var(--bg-card-hover);
}

.search-box input:focus + .search-icon {
    color: var(--primary);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.clear-search:hover {
    color: var(--primary);
}

/* Highlighting searched text */
mark {
    background: rgba(255, 184, 0, 0.3);
    color: #fff;
    border-radius: 2px;
    padding: 0 2px;
    border-bottom: 2px solid var(--secondary);
}

/* Policy Content Layout */
.policy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

/* Sidebar Navigation */
.sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 1rem;
}

/* Custom Scrollbar for Sidebar */
.sidebar-sticky::-webkit-scrollbar {
    width: 4px;
}

.sidebar-sticky::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.toc-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.toc-link .num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.toc-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.toc-link:hover .num {
    background: rgba(255, 122, 0, 0.1);
    color: var(--primary);
}

.toc-link.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(255, 122, 0, 0.06);
    border-left: 3px solid var(--primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.toc-link.active .num {
    background: var(--primary-gradient);
    color: white;
}

/* Sidebar Sub links */
.toc-sub-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 2.2rem;
    margin: 0.25rem 0;
    border-left: 1px dashed var(--border-color);
}

.toc-sub-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.toc-sub-link:hover {
    color: var(--text-main);
}

.toc-sub-link.active {
    color: var(--secondary);
    font-weight: 600;
}

/* Main Legal Text Document */
.policy-document {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.policy-section {
    padding-bottom: 3.5rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color);
}

.policy-section.last-section {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.policy-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    scroll-margin-top: 100px;
}

.policy-section h2 .sec-num {
    color: var(--primary);
}

.policy-section p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.policy-section p strong {
    color: var(--text-main);
}

/* Styled Lists */
.styled-list {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.styled-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.list-arrow {
    color: var(--primary);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.list-check {
    color: #10B981;
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.list-lock {
    color: var(--accent-purple);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

/* Text Callout Boxes */
.note-box, .shield-box {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.note-box {
    border-color: var(--secondary);
    background: rgba(255, 184, 0, 0.02);
}

.shield-box {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.02);
}

.note-icon {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.shield-icon {
    color: #10B981;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.note-box p, .shield-box p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.note-box p strong, .shield-box p strong {
    color: var(--text-main);
}

/* Nested Subsections */
.policy-sub-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-color);
    scroll-margin-top: 100px;
}

.policy-sub-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Links */
.link-highlight {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 122, 0, 0.3);
    transition: var(--transition);
}

.link-highlight:hover {
    color: var(--secondary);
    border-color: var(--secondary);
}

/* Rights Section Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.right-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
}

.right-card:hover {
    border-color: rgba(255, 122, 0, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.right-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.right-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.rights-footer {
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

/* Contact Info Section Box */
.contact-box {
    background: linear-gradient(135deg, rgba(22, 27, 39, 0.8) 0%, rgba(18, 22, 32, 0.9) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.contact-box::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 122, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h5 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-main);
}

.contact-item p a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item p a:hover {
    color: var(--primary);
}

/* Footer styling */
.main-footer {
    background: #06070a;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 5rem;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-subtext {
    font-size: 0.75rem !important;
    opacity: 0.6;
}

/* Floating Scroll Top Button */
.btn-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 99;
}

.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-scroll-top:hover {
    background: linear-gradient(135deg, #FFB800 0%, #FF7A00 100%);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.6);
    transform: scale(1.05);
}

/* Active Highlight Animation */
@keyframes sectionHighlight {
    0% {
        box-shadow: 0 0 0 0px rgba(255, 122, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 0 8px rgba(255, 122, 0, 0);
    }
}

.section-highlight {
    animation: sectionHighlight 1s ease-out;
    border-color: rgba(255, 122, 0, 0.3) !important;
}

/* ==========================================
   Responsive & Adaptive Styles
   ========================================== */

@media (max-width: 992px) {
    .policy-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        display: none; /* Hide on mobile/tablet */
    }
    
    .hero-text h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .header-container {
        height: 70px;
    }
    
    .brand-title {
        font-size: 1.4rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .utility-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .policy-document {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .contact-box {
        padding: 1.5rem;
    }
    
    .btn-print {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* ==========================================
   Print Stylesheet Optimization
   ========================================== */

@media print {
    :root {
        --bg-main: #ffffff !important;
        --text-main: #111111 !important;
        --text-muted: #333333 !important;
    }
    
    body, body.dark-theme {
        background: #ffffff !important;
        color: #111111 !important;
        font-size: 11pt !important;
        line-height: 1.5 !important;
    }
    
    .blob, 
    .main-header .btn-print, 
    .hero-section, 
    .utility-bar .search-box,
    .sidebar, 
    .btn-scroll-top,
    .main-footer,
    .summary-card .card-link,
    .logo-glow::after {
        display: none !important;
    }
    
    .main-header {
        position: relative !important;
        background: transparent !important;
        border-bottom: 2px solid #111 !important;
        padding-bottom: 10px !important;
    }
    
    .logo-glow {
        border-color: #111 !important;
        box-shadow: none !important;
    }
    
    .brand-title {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: #000000 !important;
    }
    
    .main-content {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .policy-layout {
        display: block !important;
        padding: 0 !important;
    }
    
    .policy-document {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    .policy-section {
        page-break-inside: avoid !important;
        border-bottom: 1px solid #ddd !important;
        padding-bottom: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .policy-sub-section {
        border-top: 1px solid #eee !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000000 !important;
        page-break-after: avoid !important;
    }
    
    p, li, span, a {
        color: #222222 !important;
    }
    
    a {
        text-decoration: underline !important;
    }
    
    .note-box, .shield-box {
        background: #f9f9f9 !important;
        border: 1px solid #ccc !important;
        border-left: 4px solid #333 !important;
        color: #222 !important;
    }
    
    .right-card {
        border: 1px solid #ccc !important;
        background: transparent !important;
    }
    
    .contact-box {
        border: 2px solid #111 !important;
        background: #f9f9f9 !important;
    }
}

/* Deletion Form Styling (Play Store Google Form look) */
.deletion-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 10px solid var(--primary); /* Google Form top accent bar! */
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.deletion-form-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.form-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-notice {
    font-size: 0.85rem;
    color: #EF4444; /* Red warning text */
    font-weight: 500;
}

.form-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input {
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-bottom: 1.5px solid var(--border-color);
    padding: 0.75rem 0.5rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--primary);
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.05);
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.form-group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin-top: 0.2rem;
    cursor: pointer;
}

.form-group-checkbox label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.btn-submit-delete {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition);
}

.btn-submit-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
    filter: brightness(1.1);
}

.btn-submit-delete:active {
    transform: translateY(0);
}

/* Success State styling */
.success-state {
    text-align: center;
    padding: 1.5rem 0;
    animation: fadeIn 0.5s ease-out;
}

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

.success-icon-glow {
    width: 70px;
    height: 70px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: #10B981;
    font-size: 3rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.success-state h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #10B981;
    margin-bottom: 0.75rem;
}

.success-state p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-reset-form {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-form:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================
   Premium Tab Switcher Styles
   ========================================== */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem auto 1rem auto;
    padding: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    max-width: 460px;
    position: relative;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.tab-button:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.tab-button.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Tab Content Visibility */
.tab-content {
    display: none;
    animation: tabFadeIn 0.4s ease-in-out forwards;
}

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

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

/* Redesign Tab Hero Text alignment and spacing */
.tab-hero-section {
    text-align: center;
    padding: 2.5rem 0 1.5rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.tab-hero-section h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.tab-hero-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Hide hero section spacing for tabs in deletion */
#tab-deletion .deletion-form-card {
    margin-top: 1rem;
}

/* Radio Group & Option styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.6rem;
    background: rgba(255, 255, 255, 0.01);
    padding: 0.5rem 0.2rem;
    border-radius: 6px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
}

.radio-option label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.radio-option:hover label {
    color: var(--text-main);
}

.radio-option input[type="radio"]:checked + label {
    color: var(--text-main);
    font-weight: 600;
}
