:root {
    /* Modern Color Palette */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #0F172A;
    /* Slate 900 */
    --secondary-light: #1E293B;
    /* Slate 800 */
    --secondary-lighter: #334155;
    /* Slate 700 */
    --text-main: #F8FAFC;
    /* Slate 50 */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --accent: #F59E0B;
    /* Amber 500 */
    --success: #10B981;
    --error: #EF4444;
    --border: #334155;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px -5px rgba(79, 70, 229, 0.3);

    /* Spacing */
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* Reset & Base */
html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--secondary);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.util-hidden {
    display: none !important;
}

.util-overflow-hidden {
    overflow: hidden;
}

.ui-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toast Notification */
.ui-toast {
    position: fixed;
    top: 25px;
    right: 20px;
    background: var(--secondary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 999;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    min-width: 300px;
}

.ui-toast--active {
    transform: translateX(0);
}

.ui-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.ui-toast-icon {
    width: 24px;
    height: 24px;
}

.ui-toast-msg {
    color: var(--text-main);
    font-size: 0.95rem;
    flex: 1;
}

.ui-toast-close {
    cursor: pointer;
    opacity: 0.7;
    width: 16px;
    height: 16px;
}

.ui-toast-close:hover {
    opacity: 1;
}

.ui-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 100%;
}

/* Modal / Popup */
.ui-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ui-modal-content {
    background: var(--secondary);
    padding: 5px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    position: relative;
}

.ui-modal-close {
    position: absolute;
    top: -35px;
    right: 0;
    background: #fff;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}

/* Layout - Preserving Original Structure */
.app-root {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
    background-color: var(--secondary);
}

.layout-main {
    display: flex;
    flex-direction: column;
    max-width: 520px;
    width: 100%;
    gap: 3px;
    padding: 12px;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.layout-main::-webkit-scrollbar {
    display: none;
}

.layout-sidebar {
    width: 100%;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .layout-sidebar {
        display: none;
    }
}

/* Ad Containers (Preserved Layout) */
.ad-header-wrapper {
    text-align: center;
    margin-bottom: 10px;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-header-wrapper>div {
    min-width: 300px;
    min-height: 250px;
}

.ad-sticky {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 5px;
    display: flex;
    justify-content: center;
    z-index: 100;
    width: 100%;
    max-width: 520px;
}

.ad-sticky-close {
    position: absolute;
    top: -30px;
    right: 10px;
    background: #fff;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

/* Components */

/* Promo Card */
.promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--secondary-light);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.promo-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

/* Typography */
.heading-lg {
    font-size: 1.5rem;
    line-height: 2rem;
}

.heading-md {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.heading-page {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-body {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.text-link {
    color: var(--primary);
    font-weight: 500;
}

.text-link:hover {
    color: var(--primary-hover);
}

/* Buttons & Navigation */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    box-shadow: 0 0 30px -5px rgba(79, 70, 229, 0.5);
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.nav-item {
    display: block;
    background-color: var(--secondary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: var(--secondary-lighter);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-item-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.nav-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-muted);
}

/* Lists */
.list-ordered {
    counter-reset: item;
    padding-left: 0;
}

.list-ordered li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.list-ordered li:before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 1.5rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.list-bullet {
    list-style: none;
}

.list-bullet li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.list-bullet li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1rem;
}

/* Form Elements */
.input-field,
.textarea-field {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-lighter);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 1rem;
}

.input-field:focus,
.textarea-field:focus {
    border-color: var(--primary);
}

.textarea-field {
    height: 150px;
    resize: none;
}

.btn-submit {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

/* Custom Badge */
.badge-ad {
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: -5px;
    right: -10px;
}

.btn-wrapper-rel {
    position: relative;
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--secondary-light);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem;
    background: var(--secondary-lighter);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.accordion-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.accordion-input {
    display: none;
}

.accordion-input:checked~.accordion-content {
    max-height: 300px;
    padding: 1rem;
}

/* Sidebar Elements */
.sidebar-img {
    width: 80%;
    display: block;
    margin: 0 auto;
}

.sidebar-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Footer */
.footer-block {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.social-icon:hover {
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}