/* General Styles */
:root {
    --primary-color: #8b7fd8;
    --secondary-color: #8b7fd8;
    --text-color: #1A1A1A;
    --light-bg: #f8f9fa;
    --header-bg: #ffffff;
    --nav-link-color: #1A1A1A;
    
    /* Additional Colors */
    --white: #ffffff;
    --black: #000000;
    --purple: #8b7fd8;
    --discord-blue: #5865F2;
    --gray-600: #666666;
    --gray-700: #718096;
    --border-light: #e0e0e0;
    
    /* Transparent Colors */
    --shadow-purple: rgba(139, 127, 216, 0.1);
    --shadow-purple-hover: rgba(139, 127, 216, 0.2);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-text: rgba(255, 255, 255, 0.7);
    
    /* Button Colors */
    --btn-border: rgba(0, 0, 0, 0.2);
    --btn-hover-bg: rgba(0, 0, 0, 0.1);
    
    /* CTA Colors */
    --cta-bg: #111111;
    --cta-gradient-start: #8b7fd8;
    --cta-gradient-end: #8b7fd8;
    --cta-shadow: rgba(139, 127, 216, 0.3);
    --cta-shadow-hover: rgba(139, 127, 216, 0.4);
    
    /* Solana Colors */
    --solana-green: #14F195;
    --solana-blue: #85A7FF;
    --solana-purple: #A566FF;
    
    /* Navigation Colors */
    --nav-link-opacity: 0.9;
    --nav-link-hover-opacity: 1;
    --social-link-opacity: 0.8;
    --social-link-hover-opacity: 1;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f1f1f1;
    --dot-bg: #f1f1f1;
    --dot-color: #cccccc;
    --dot-size: 3px;
    --dot-space: 55px;
    background:
      linear-gradient(90deg, var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
      linear-gradient(var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
      var(--dot-color);
}

.page-wrapper {
    max-width: 1920px;
    margin: 0 auto;
}

/* Header Styles */
.header-container {
    background-color: var(--header-bg);
    border-radius: 100px;
    padding: 0.5rem 2rem;
}

.navbar {
    padding: 0;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    text-decoration: none;
}

.navbar-brand .brand-text {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.navbar-brand .text-primary {
    color: var(--primary-color) !important;
}

.nav-links {
    margin: 0 2rem;
}

.navbar-nav {
    gap: 2rem;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0 !important;
    transition: opacity 0.3s ease;
    opacity: var(--nav-link-opacity);
    white-space: nowrap;
}

.nav-link:hover {
    opacity: var(--nav-link-hover-opacity);
}

.social-icons {
    gap: 1.25rem;
}

.social-link {
    color: var(--text-color);
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    opacity: var(--social-link-opacity);
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.social-link:hover {
    opacity: var(--social-link-hover-opacity);
    color: var(--text-color);
    text-decoration: none !important;
}

.auth-buttons .btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-outline-primary {
    color: var(--text-color);
    border: 1px solid var(--btn-border);
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: var(--text-color);
    background-color: var(--btn-hover-bg);
    border-color: var(--btn-border);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Mobile Menu Styles */
.navbar-toggler {
    border: none;
    padding: 0;
    color: var(--text-color);
    font-size: 1.5rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.mobile-menu {
    margin: 1rem -2rem -0.5rem -2rem;
    padding: 1.5rem 2rem;
    border-radius: 0 0 20px 20px;
}

.mobile-menu .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0 !important;
    opacity: var(--nav-link-opacity);
}

.mobile-menu .nav-link:hover {
    opacity: var(--nav-link-hover-opacity);
}

.mobile-menu .social-icons-mobile {
    justify-content: center;
    gap: 2rem;
}

.mobile-menu .social-link {
    font-size: 1.25rem;
}

.mobile-menu .btn-outline-primary {
    border-color: var(--footer-border);
}

.mobile-menu .btn-outline-primary:hover {
    background-color: var(--footer-border);
    border-color: var(--footer-border);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .header-container {
        padding: 0.5rem 1.5rem;
    }
    
    .nav-links {
        margin: 0 1rem;
    }

    .navbar-nav {
        gap: 1.5rem;
    }

    .social-icons {
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .header-container {
        border-radius: 20px;
        padding: 0.5rem 1rem;
    }

    .navbar-brand .brand-text {
        display: none;
    }

    .nav-links {
        margin: 0 0.75rem;
    }

    .navbar-nav {
        gap: 1rem;
    }

    .social-icons {
        gap: 0.75rem;
    }

    .auth-buttons .btn {
        padding: 0.5rem 1rem;
    }

    .mobile-menu {
        margin: 1rem -1rem -0.5rem -1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        border-radius: 15px;
    }
    
    .desktop-menu {
        display: none !important;
    }
}

/* Adjust main content for fixed header */
main {
    margin-top: 80px; /* Adjust based on header height */
}

/* Hero Section */
#hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    padding: 2rem 0;
    text-align: center;
}

/* Hero Section Styles */
.hero-section {
    padding: 6rem 0 !important;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-text {
    color: var(--text-color);
}

.discord-text, .solana-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 5rem;
}

.discord-text {
    color: var(--discord-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-label {
    color: var(--discord-blue);
}

.solana-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    background: linear-gradient(to right, var(--solana-green), var(--solana-blue), var(--solana-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discord-logo, .solana-logo {
    max-width: 96px;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

.phantom-logo {
    max-width: 500px;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

.highlight {
    color: #1A1A1A;
    font-weight: 800;
}

/* Responsive adjustments for hero section */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .phantom-logo {
        max-width: 400px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .phantom-logo {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        gap: 1rem;
    }
    
    .discord-logo, .solana-logo {
        max-width: 48px;
    }
    
    .phantom-logo {
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    
    .hero-line {
        gap: 0.2rem;
    }

    .discord-logo, .solana-logo {
        max-width: 48px;
    }
    
    .phantom-logo {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .discord-logo, .solana-logo {
        max-width: 64px;
    }
    
    .phantom-logo {
        max-width: 180px;
    }
}

/* Logo Styles */
.logo-icon {
    background-color: var(--primary-color);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
}

.brand-text {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

/* Logo Styles */
.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* How it Works Section */
.how-it-works {
    padding: 6rem 0;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--shadow-purple);
    color: var(--purple);
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-title .text-primary {
    color: var(--primary-color) !important;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.step-card {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    padding: 2rem;
    height: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-purple) 0px 10px 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-purple-hover) 0px 20px 60px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--purple);
    color: var(--white);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--purple);
}

.step-card p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.step-image {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(160, 91, 230, 0.1);
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
}

.invite-link {
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 600;
    transition: text-decoration 0.3s ease;
}

.invite-link:hover {
    text-decoration: underline;
}

/* Features Section */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-purple);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-purple-hover);
}

.feature-icon {
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    padding: 6rem 0;
    color: var(--white);
    margin: 2rem 0;
}

.cta-wrapper {
    background-color: var(--cta-bg);
    border-radius: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-icon {
    max-width: 100px;
    border-radius: 32px;
    margin: auto;
}

.highlight-text {
    background: linear-gradient(135deg, var(--cta-gradient-start) 0%, var(--cta-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-buttons .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--cta-gradient-start) 0%, var(--cta-gradient-end) 100%);
    border: none;
    box-shadow: 0 4px 15px var(--cta-shadow);
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--cta-shadow-hover);
}

@media (max-width: 768px) {
    .cta-wrapper {
        padding: 4rem 1.5rem;
        margin: 1rem;
    }

    .final-cta {
        padding: 2rem 0;
        margin: 1rem 0;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 6rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--footer-border);
}

.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.footer-description {
    color: var(--footer-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-contact {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

.footer-contact:hover {
    color: var(--primary-color);
}

.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-links-column h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-column ul li {
    margin-bottom: 0.75rem;
}

.footer-links-column ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--footer-text);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-social-icons {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--footer-border);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon i {
    font-size: 1.25rem;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-links-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
    }

    .footer-links-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon i {
        font-size: 1.1rem;
    }
}

/* Footer Legal Links */
.footer-legal a {
    color: #6c757d;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #007bff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 25px;
}

.modal-section h3:first-child {
    margin-top: 0;
}

.modal-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-section h3 {
        font-size: 16px;
    }
    
    .modal-section p {
        font-size: 14px;
    }
}

/* Beta Modal Styles */
.beta-content {
    padding: 1rem 0;
}

.beta-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.beta-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beta-features li {
    padding: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.beta-features li:before {
    content: "";
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.beta-cta {
    margin-top: 2rem;
}

.beta-cta .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(138, 79, 255, 0.3);
    transition: all 0.3s ease;
}

.beta-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 79, 255, 0.4);
}

@media (max-width: 768px) {
    .beta-content {
        padding: 0.5rem 0;
    }
    
    .beta-features li {
        font-size: 0.9rem;
    }
    
    .beta-cta .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* Payment CTA Flexbox for Amount */
.sol-amount-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-bottom: 0.5em;
}
.sol-amount-row #solAmount {
    font-size: 1.3em;
    font-weight: 600;
}
.sol-amount-logo {
    height: 1.3em;
    vertical-align: middle;
}

/* Recipient Card Styles */
.recipient-card {
    display: inline-block;
    margin-top: 1em;
    padding: 0.75em 1.25em;
    background: #181a20;
    border-radius: 1.5em;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    color: #fff;
    font-size: 1.1rem;
}
.recipient-sol-logo {
    height: 1.2em;
    vertical-align: middle;
    margin-right: 0.4em;
}
.recipient-address {
    font-family: monospace;
    padding: 0.2em 0.6em;
    user-select: all;
    color: #a3ffb0;
    font-size: 0.9rem;
}
#shopName {
    font-weight: 800;
    font-family: monospace;
    color: #a3ffb0;
    letter-spacing: 1px;
}
#paymentStatus {
    font-weight: 600;
    font-family: monospace;
    color: #a3ffb0;
    letter-spacing: 1px;
}
.warning-text {
    font-size: 0.8em;
    color: grey;
    font-weight: 600;
    font-family: monospace;
    letter-spacing: 1px;
    margin-top: 2em;
    text-align: center;
}

@media (max-width: 600px) {
  .cta-wrapper {
    padding: 2rem 0.5rem;
  }
  .recipient-card {
    display: block;
    max-width: 95vw;
    padding: 0.5em 0.2em;
    font-size: 1em;
    word-break: break-all;
    margin-left: 1em;
    margin-right: 1em;
  }
  .recipient-address {
    font-size: 0.85rem;
    padding: 0.15em 0.2em;
    margin-left: 0.4em;
    word-break: break-all;
  }
  #shopName {
    font-size: 1rem;
    word-break: break-all;
  }
  .warning-text {
    font-size: 0.7em;
    margin-top: 1em;
    padding: 0 0.5em;
  }
}