/* DmFirst Gaming Platform - Professional Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dm-bg-green: #031E11;
    --primary-dark: #031E11;
    --primary-darker: #020F08;
    --gold: #d4af37;
    --gold-light: #e5c158;
    --gold-dark: #b8960e;
    --text-light: #FFFFFF;
    --text-secondary: #B0B0B0;
    --accent: #1FBF71;
    --success: #00D084;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dm-bg-green);
    color: var(--text-light);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--dm-bg-green), var(--primary-darker));
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gold);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.menu-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gold);
    cursor: pointer;
    display: block;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
}

/* Menu Modal */
.menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    pointer-events: none;
}

.menu-modal.active {
    display: flex;
    pointer-events: auto;
}

.menu-content {
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--primary-darker);
    border: 2px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    min-width: 250px;
    z-index: 2001;
    pointer-events: auto;
}

.menu-content a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-light);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.menu-content a:hover {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding-left: 30px;
}

.close-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    pointer-events: none;
    z-index: 1999;
}

.menu-modal.active .close-menu {
    display: block;
    pointer-events: auto;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

section {
    margin-bottom: 50px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0F3D34, var(--primary-darker));
    padding: 60px 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.hero h1 {
    font-size: 46px;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Headings */
h1 {
    color: var(--text-light);
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    color: var(--text-light);
    font-size: 28px;
    margin-bottom: 30px;
    margin-top: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 15px;
    border-radius: 2px;
}

h3 {
    color: var(--gold);
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    letter-spacing: 0.3px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent), #15a85e);
    color: white;
    box-shadow: 0 4px 12px rgba(31, 191, 113, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 16px rgba(31, 191, 113, 0.4);
}

/* Cards */
.card {
    background: rgba(15, 61, 52, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(15, 61, 52, 0.7);
}

.card-title {
    color: var(--gold);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Lists */
ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 15px;
}

li strong {
    color: var(--gold);
    font-weight: 600;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(15, 61, 52, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
}

table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* Features List */
.features-list {
    list-style: none;
    margin-left: 0;
}

.features-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    font-size: 15px;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 18px;
}

/* Forms */
input, textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: rgba(15, 61, 52, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-light);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(15, 61, 52, 0.8);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: var(--primary-darker);
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

#footerLogo {
    height: 60px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-links a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

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

.footer-text {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 20px;
    line-height: 1.6;
}

.footer-text strong {
    color: var(--gold);
    font-weight: 600;
}

/* Guide Steps */
.guide-step {
    background: rgba(15, 61, 52, 0.5);
    border-left: 4px solid var(--gold);
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.guide-step h3 {
    color: var(--gold);
    margin-top: 0;
    font-size: 16px;
}

.guide-step p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
}

/* FAQ Accordion */
.faq-item {
    background: rgba(15, 61, 52, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-light);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 15px;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.15);
}

.faq-answer {
    padding: 16px 20px;
    color: var(--text-secondary);
    display: none;
    background: var(--primary-darker);
    font-size: 14px;
    line-height: 1.6;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    font-size: 18px;
    font-weight: bold;
    color: var(--gold);
}


/* ========== FLOATING CONTACT ICONS ========== */

/* Telegram Floating Icon */
.telegram-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc, #0077b6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
    animation: floatUp 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.telegram-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 136, 204, 0.6);
    background: linear-gradient(135deg, #0077b6, #006699);
}

.telegram-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Support Float Icon */
.support-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1FBF73, #16a34a);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(31, 191, 115, 0.4);
    animation: floatDown 3.5s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.support-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(31, 191, 115, 0.6);
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.support-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

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

@keyframes floatDown {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(12px); }
}

.telegram-badge, .support-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF4757;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid var(--dm-bg-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
}

.float-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    right: 80px;
    bottom: 50%;
    transform: translateY(50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.telegram-float:hover .float-tooltip,
.support-float:hover .float-tooltip {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
        width: auto;
    }
    .telegram-float {
        width: 55px;
        height: 55px;
        bottom: 100px;
        right: 20px;
    }

    .support-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .telegram-float svg,
    .support-float svg {
        width: 28px;
        height: 28px;
    }

    .float-tooltip {
        font-size: 11px;
        right: 70px;
    }
}

/* Mobile Menu Button Fix */
@media (max-width: 768px) {
    .menu-btn {
        display: block !important;
    }
}
