/* Custom Properties for Stake Brand Template (stakecrypto.ru style) */
:root {
    --bg-main: #1a2430;
    /* Dark slate background matching the image */
    --bg-secondary: #223040;
    /* Slightly lighter slate for cards */
    --bg-card: #2a3a4c;
    /* Even lighter cards */
    --accent: rgb(20, 117, 225);
    /* The bright blue requested for buttons */
    --accent-hover: #0d60c4;
    --text-primary: rgb(177, 186, 211);
    /* Soft grayish-blue for text */
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: all 0.2s ease;

    --font-sans: Arial, "Proxima Nova Rg", sans-serif;
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-muted);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

ul,
ol {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 2rem 0;
}

.text-section {
    padding: 2rem 0;
}

.section-dark {
    background-color: var(--bg-secondary);
}

.section-accent {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #0f2b1d 100%);
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
}

.section-cta {
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

/* Responsive Grid */
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .section {
        padding: 3rem 0;
    }

    .row-reverse {
        flex-direction: row-reverse;
        direction: rtl;
    }

    .row-reverse>* {
        direction: ltr;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-small {
    font-size: 0.875rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: start;
}

.hidden {
    display: none !important;
}

.w-full {
    width: 100%;
}

.max-w-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.relative {
    position: relative;
}

@media (min-width: 768px) {
    .hidden-desktop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hidden-mobile {
        display: none !important;
    }

    .mobile-only {
        display: flex;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-dark {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(20, 117, 225, 0.4);
    transform: translateY(0);
}

.btn-dark:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    box-shadow: 0 6px 20px rgba(20, 117, 225, 0.6);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.action-btn {
    min-width: 130px;
}

.btn-app {
    background: linear-gradient(135deg, #d97743 0%, #bd5f2e 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(217, 119, 67, 0.4);
    transform: translateY(0);
    text-decoration: none !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    gap: 8px !important;
}

.btn-app:hover {
    background: linear-gradient(135deg, #bd5f2e 0%, #d97743 100%);
    box-shadow: 0 6px 20px rgba(217, 119, 67, 0.6);
    transform: translateY(-2px);
}

/* Header & Hero */
.hero {
    background-color: var(--bg-main);
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.top-actions {
    display: flex;
    gap: 12px;
}

.logo span {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content .subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    min-height: 1.5em;
    /* For placeholder */
}

/* Promo Block */
.hero-promo-block {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 8px 8px 8px 16px;
    margin-bottom: 2rem;
    border: 3px dashed var(--accent);
    /* Dotted border logic */
    position: relative;
}

.promo-label {
    margin-right: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.promo-code {
    color: #ffffff;
    font-size: 1.4rem;
    margin-right: 12px;
    letter-spacing: 2px;
    font-weight: 800;
}

.btn-copy {
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background-color: var(--accent);
    color: #000;
}

.copy-tooltip {
    position: absolute;
    top: -30px;
    right: 0;
    background: var(--accent);
    color: #000;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.copy-tooltip.show {
    opacity: 1;
}

.hero-buttons {
    margin-bottom: 1.5rem;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-links a {
    font-size: 0.875rem;
    text-decoration: underline;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Anchor Nav (Scrollable) */
.anchor-nav {
    display: flex;
    overflow-x: auto;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.anchor-nav::-webkit-scrollbar {
    display: none;
}

.anchor-nav a {
    white-space: nowrap;
    padding: 8px 16px;
    background-color: var(--bg-main);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.anchor-nav a:hover {
    background-color: var(--bg-card);
    color: var(--accent);
}

@media (min-width: 768px) {
    .anchor-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Placeholders specific styling */
.content-placeholder {
    margin-bottom: 1.5rem;
    min-height: 100px;
    padding: 1rem;
    border: 3px dashed rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

.visual-placeholder {
    width: 100%;
    min-height: 250px;
    background-color: var(--bg-card);
    border: 3px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.placeholder-box {
    background-color: rgba(0, 0, 0, 0.2);
    border: 3px dashed rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Big Promo Card */
.big-promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem auto;
    max-width: 400px;
    border: 3px dashed var(--accent);
}

.big-promo .promo-text {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.btn-copy-big {
    width: 100%;
}

/* Review Cards Placeholder */
.review-card {
    background-color: var(--bg-main);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-top: 3px solid var(--accent);
}

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

.review-author {
    color: var(--text-primary);
    font-weight: bold;
}

.rating {
    color: #333;
}

.rating .star.active {
    color: var(--accent);
}

/* Review Form Placeholder */
.review-form-wrapper {
    display: flex;
    justify-content: center;
}

.review-form-container {
    width: 100%;
    max-width: 600px;
    background-color: var(--bg-main);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.rating-select {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-stars {
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

.rating-stars .star {
    transition: color 0.1s;
}

.rating-stars .star.active {
    color: var(--accent);
}

.review-success-msg {
    padding: 1rem;
    background-color: rgba(20, 117, 225, 0.1);
    border: 1px dashed var(--accent);
    border-radius: var(--radius-sm);
}

/* Footer */
.footer {
    background-color: #0b1822;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-nav nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}