:root {
    --purple-primary: #8B5CF6;
    --purple-dark: #44337A;
    --purple-light: #C4B5FD;
    --bg-dark: #0F0F0F;  /* Keep this for sidebar and other elements */
    --bg-darker: #0A0A0A;
    --bg-main: #17141e;  /* Updated to new hex code */
    --card-bg: rgba(17, 17, 17, 0.95);
    --text: #FFFFFF;
    --text-muted: #888888;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background: var(--bg-main);  /* Use new variable for main background */
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--text);
    font-family: var(--font-body);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: var(--bg-dark);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-sizing: border-box;
}

.sidebar-logo {
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(139, 92, 246, 0.1);
}

.nav-links a.active {
    color: var(--text);
    background: rgba(139, 92, 246, 0.15);
}

/* Main Content */
main {
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Hero Section Styles */
.hero {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4rem;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero .title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--text) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
    }
    50% {
        text-shadow: 0 0 80px rgba(139, 92, 246, 0.4);
    }
    100% {
        text-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;  /* Reduced from default spacing */
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-primary);
    box-shadow: 0 10px 30px -10px var(--purple-primary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.2),
        transparent
    );
    transition: 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--purple-light);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem 2rem;
    }

    .title {
        font-size: 2.5rem;  /* Adjusted for mobile */
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Cards */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;  /* Removed top/bottom padding */
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--purple-primary);
    box-shadow: 0 10px 30px -10px var(--purple-primary);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.2),
        transparent
    );
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover .card-label {
    color: var(--purple-light);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.card:hover h2 {
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.card-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 0.5rem;
}

.card h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--text);
    margin: 0;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.card-btn {
    padding: 0.75rem 2rem;
    border-radius: 6px;
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary,
.card-btn {
    background: var(--purple-primary);
    color: var(--text);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-primary:hover,
.card-btn:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Discord Button */
.discord-btn {
    background: var(--purple-primary);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0;
    display: block;
    text-align: center;
    text-decoration: none;
    margin: 0 1rem;
    width: auto;
}

.discord-btn:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    color: var(--text);
    text-decoration: none;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-buttons button {
    min-width: 140px;
}

/* Modal styling */
.modal-content h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.modal-content p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
}

/* Add new styles for blip reference cards */
.blip-ref-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blip-ref-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--purple);
    opacity: 0.5;
}

.blip-ref-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blip-ref-card .card-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--purple-light);
    letter-spacing: 0.05em;
}

.blip-ref-card h2 {
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 600;
}

.blip-ref-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.blip-ref-card .card-btn {
    background: transparent;
    color: var(--purple-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blip-ref-card .card-btn:hover {
    background: var(--purple);
    color: white;
}

/* Credits Page */
.credits-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.credits-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.credits-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.credits-group h2 {
    color: var(--purple-light);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.credits-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.credit-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.credit-item h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.credit-role {
    color: var(--purple-light);
    font-size: 1rem;
    font-weight: 500;
}

.credit-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.credit-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.credit-link {
    color: var(--purple-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.credit-link:hover {
    background: var(--purple-primary);
    color: var(--text);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .credits-section {
        padding: 2rem 1rem;
    }

    .credits-section .guides-header {
        margin-bottom: 3rem;
    }

    .credits-container {
        gap: 3rem;
    }

    .credit-item h3 {
        font-size: 1.5rem;
    }
}

/* Base responsive styles */
@media (max-width: 768px) {
    /* Sidebar/navbar mobile styles */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 1rem;
        background: var(--bg-dark);
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        z-index: 1001;
        box-sizing: border-box;
    }

    /* Search bar adjustments for mobile */
    .top-search {
        left: 0;
        padding: 0.5rem;
        height: 56px;
        background: var(--bg-dark);
        position: fixed;
        top: calc(64px + 1rem);
        width: 100%;
        box-sizing: border-box;
        z-index: 999;
    }

    /* Navigation menu */
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 0.5rem;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
        z-index: 1000;
        flex-direction: column;
    }

    .nav-links.active {
        display: flex;
    }

    /* Main content adjustments */
    main {
        margin-left: 0;
        padding: 1rem;
        padding-top: 80px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Hero section adjustments */
    .hero {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .title {
        font-size: 2rem;
        padding: 0;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0;
    }

    /* Cards become full width */
    .features {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        margin-top: 1rem;
    }

    /* Vehicle and Blip cards */
    .vehicle-grid,
    .blip-grid {
        grid-template-columns: 1fr;
    }

    /* Search and filters */
    .search-filter {
        flex-direction: column;
    }

    .filter-options {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    /* Adjust text sizes */
    .title {
        font-size: 2rem;
    }

    .card h2 {
        font-size: 1.2rem;
    }

    /* Mobile search bar adjustments */
    .top-search {
        left: 0;
        padding: 0.5rem;
        height: 56px;
        background: var(--bg-dark);
        position: fixed;
        top: 0;
        width: 100%;
        box-sizing: border-box;
        z-index: 1000;
    }

    .search-wrapper,
    .search-results {
        width: calc(100% - 1rem);
        max-width: none;
        margin: 0 auto;
    }

    /* Ensure search results appear properly on mobile */
    .search-results {
        position: fixed;
        top: calc(64px + 56px + 1rem);
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        border-radius: 0;
        max-height: calc(100vh - 64px - 56px - 1rem);
    }

    .card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .card-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Navigation menu */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 0.5rem;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Announcement Banner */
.announcement-banner {
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid var(--purple-primary);
    border-radius: 16px;
    margin: 0 auto 2rem;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--purple-primary);
    box-shadow: 0 0 20px var(--purple-primary);
}

.announcement-content {
    padding: 2rem;
    position: relative;
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.announcement-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.announcement-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.announcement-body {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.announcement-body h3 {
    color: var(--purple-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-body h3::before {
    content: '→';
    color: var(--purple-primary);
    font-weight: 400;
}

.announcement-body p {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(139, 92, 246, 0.1);
}

@media (max-width: 768px) {
    .announcement-banner {
        margin: 0 1rem 1.5rem;
        border-radius: 12px;
    }
    
    .announcement-content {
        padding: 1.5rem;
    }
    
    .announcement-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .announcement-header h2 {
        font-size: 1.25rem;
    }
    
    .announcement-body {
        font-size: 0.9rem;
    }
    
    .announcement-body p {
        padding-left: 1rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .card {
        padding: 1.25rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .modal-content {
        width: 90%;
        margin: 1rem;
    }

    .title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .search-result-item {
        padding: 0.75rem 1rem;
    }

    .search-result-item h3 {
        font-size: 1rem;
    }

    .search-result-item p {
        font-size: 0.875rem;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* Add these styles for the online guides page */
.features .content-header {
    margin-bottom: 2rem;
}

.features .content-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
}

/* Add this to your existing CSS */
.donation-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    padding: 1rem;
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
}

.donation-notification h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.donation-notification p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.donation-buttons {
    display: flex;
    gap: 0.5rem;
}

.donation-notification .close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.donation-notification .close-btn:hover {
    color: var(--text);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.donation-notification .btn-primary,
.donation-notification .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Guides List Styles */
.guides-list {
    padding: 1rem 2rem 4rem;  /* Reduced top padding */
    max-width: 900px;
    margin: 0 auto;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.guide-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 220px;
    box-sizing: border-box;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-primary);
    box-shadow: 0 20px 40px -20px rgba(139, 92, 246, 0.25);
}

.guide-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.guide-card .card-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 6px;
}

.guide-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.8;
}

.guide-card .card-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--purple-light);
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.guide-card .card-btn:hover {
    background: var(--purple-primary);
    color: var(--text);
    transform: translateY(-2px);
}

.guide-card .card-btn::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.guide-card .card-btn:hover::after {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .guides-header h1 {
        font-size: 2rem;
    }

    .guide-category-card {
        padding: 2rem 1.5rem;
    }

    .guide-category-card h2 {
        font-size: 1.5rem;
    }
}

/* General card button styling (centered for all pages except guides) */
.card .btn-primary,
.card .card-btn {
    align-self: center;
    margin-top: auto;
}

/* Specific styling for guides page to keep buttons left-aligned */
.guide-card .card-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Online guides specific styles */
.section-header {
    margin-bottom: 2rem;
    width: 100%;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Fix grid layout for sections */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: calc(100vw - 250px - 4rem);
    margin: 0 auto;
    padding: 0;
    margin-top: 2rem;
}

/* Make section headers take full width */
.features .section-header {
    grid-column: 1 / -1;
}

/* Adjust info section to 2 columns */
.features:nth-of-type(2) {
    grid-template-columns: repeat(2, 1fr);
}

/* Card buttons container */
.card-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .features:nth-of-type(2) {
        grid-template-columns: 1fr;
    }
    
    .card-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Add these styles for clickable cards */
.clickable-card {
    cursor: pointer;
}

.clickable-card .card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.clickable-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple-primary);
    box-shadow: 0 10px 30px -10px var(--purple-primary);
}

/* Adjust info section card heights */
.features:nth-of-type(2) .card {
    min-height: 200px;  /* Reduced from default height */
    padding: 2rem;      /* Slightly reduced padding */
    gap: 1rem;         /* Reduced gap between elements */
}

.features:nth-of-type(2) .card p {
    margin-bottom: 0;  /* Remove bottom margin from paragraph */
}

/* Adjust spacing for card labels and headings */
.features:nth-of-type(2) .card-label {
    margin-bottom: 0.25rem;
}

.features:nth-of-type(2) h2 {
    margin-bottom: 0.5rem;
}

/* Top Search Bar Styles */
.top-search {
    position: fixed;
    top: 0;
    right: 0;
    left: 250px;
    height: 64px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    justify-content: center;
    z-index: 100;
}

.search-wrapper {
    position: relative;
    width: 500px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-wrapper:focus-within {
    border-color: var(--purple-primary);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.15);
    transform: translateY(2px);
}

#guideSearch {
    flex: 1;
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#guideSearch::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--purple-primary);
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--purple-dark);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    display: none;
    z-index: 99;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Adjust main content to account for fixed search bar */
main {
    padding-top: 64px; /* Match search bar height */
}

@media (max-width: 768px) {
    .top-search {
        left: 0;
        padding: 0.5rem;
        height: 56px;
        background: var(--bg-dark);
    }

    .search-wrapper,
    .search-results {
        width: calc(100% - 1rem);
        max-width: none;
    }

    .features {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .features:nth-of-type(2) {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }
    
    .card-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

.search-result-item {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--card-bg);
    transform: translateX(4px);
}

.search-result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--purple-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-result-item:hover::before {
    opacity: 1;
}

.search-result-item .result-category {
    font-size: 0.8rem;
    color: var(--purple-light);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.search-result-item h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-result-item:hover h3 {
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-result-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.search-result-item:hover p {
    color: var(--text);
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.submit-guide-btn {
    position: absolute;
    right: 2rem;
    background: var(--purple-primary);
    color: var(--text);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-guide-btn:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.form-group {
    position: relative;
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 40px 8px 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    background: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-body);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.form-group input.is-valid,
.form-group textarea.is-valid {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-group input.is-valid:focus,
.form-group textarea.is-valid:focus {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.form-group input.is-invalid:focus,
.form-group textarea.is-invalid:focus {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    animation: slideIn 0.3s ease-out;
    width: 100%;
    text-align: left;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add validation icons */
.form-group input.is-valid,
.form-group textarea.is-valid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2310b981' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 16px;
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ef4444' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 16px;
}

/* Adjust textarea icon position */
.form-group textarea.is-valid,
.form-group textarea.is-invalid {
    background-position: calc(100% - 12px) 12px;
}

/* Add some spacing for error messages */
.form-group {
    margin-bottom: 2rem;
}

/* Update form group spacing and positioning */
.form-group {
    position: relative;
    margin-bottom: 1.75rem;
}

/* Update error message positioning */
.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    animation: slideIn 0.3s ease-out;
    width: 100%;
    text-align: left;
}

/* Update modal content to handle overflow properly */
.modal-content {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    width: 95%;
    max-width: 600px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

/* Add some padding to the form */
#guideSubmissionForm {
    padding: 0.5rem 0;
}

/* Ensure the last form group doesn't have extra margin */
.form-group:last-of-type {
    margin-bottom: 1.5rem;
}

/* Update textarea container to handle validation properly */
.form-group textarea {
    min-height: 100px;
    max-height: 200px;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    width: 95%;
    max-width: 600px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-content h3 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Confirmation modal specific styles */
#confirmation-modal .modal-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

#confirmation-modal .modal-buttons {
    justify-content: center;
}

#confirmation-modal p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Update card styles */
.guide-card,
.guide-category-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 220px;
    box-sizing: border-box;
}

/* Homepage Specific Styles */
.home-hero {
    text-align: center;
    padding: 4rem 0 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Featured Card */
.home-features .featured-card {
    grid-column: 1 / -1;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 350px;
}

.home-features .featured-card .card-label {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    z-index: 3;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-features .featured-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.home-features .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-features .featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%
    );
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-features .image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    z-index: 2;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-features .caption-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.home-features .date {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* Hover Effects */
.home-features .featured-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-primary);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.home-features .featured-card:hover .featured-image img {
    transform: scale(1.02);
}

.home-features .featured-card:hover .image-caption {
    transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .home-features .featured-card {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .home-features .featured-card {
        height: 250px;
    }
    
    .home-features .caption-text {
        font-size: 1rem;
    }
    
    .home-features .featured-card .card-label {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* PayPal Support Card - Homepage Only */
.home-features .card[href*="paypal"] {
    background: #1a1f36;
    border: 1px solid rgba(139, 92, 246, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.home-features .card[href*="paypal"]:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    border-color: #009cde;
}

.home-features .card[href*="paypal"]:hover .card-btn {
    background: #008ac7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 156, 222, 0.3);
}

.home-features .card[href*="paypal"] .card-label {
    color: #009cde;
    font-weight: 600;
    position: relative;
    padding-left: 35px;
    transition: all 0.3s ease;
}

.home-features .card[href*="paypal"]:hover .card-label {
    transform: translateY(-2px);
}

.home-features .card[href*="paypal"] .card-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23009cde' d='M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
}

.home-features .card[href*="paypal"] h2 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    font-size: 1.3rem;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.home-features .card[href*="paypal"]:hover h2 {
    transform: translateY(-2px);
}

.home-features .card[href*="paypal"] .card-btn {
    background: #009cde;
    color: #ffffff;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.75rem 2rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    transition: all 0.3s ease;
    position: relative;
}

.home-features .card[href*="paypal"] .card-btn::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23ffffff' d='M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
}

.home-features .card[href*="paypal"] h2 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    font-size: 1.3rem;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.home-features .card[href*="paypal"]:hover h2 {
    transform: translateY(-2px);
}

.home-features .card[href*="paypal"] .card-btn {
    background: #009cde;
    color: #ffffff;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.75rem 2rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    transition: all 0.3s ease;
    position: relative;
}

.home-features .card[href*="paypal"] .card-btn::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23ffffff' d='M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
}

.home-features .card[href*="paypal"] h2 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    font-size: 1.3rem;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.home-features .card[href*="paypal"]:hover h2 {
    transform: translateY(-2px);
}

.home-features .card[href*="paypal"] .card-btn {
    background: #009cde;
    color: #ffffff;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.75rem 2rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    transition: all 0.3s ease;
    position: relative;
}

.home-features .card[href*="paypal"] .card-btn::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23ffffff' d='M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
}

.home-features .card[href*="paypal"] h2 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    font-size: 1.3rem;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.home-features .card[href*="paypal"]:hover h2 {
    transform: translateY(-2px);
}

.home-features .card[href*="paypal"] .card-btn {
    background: #009cde;
    color: #ffffff;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.75rem 2rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    transition: all 0.3s ease;
    position: relative;
}

.home-features .card[href*="paypal"] .card-btn::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23ffffff' d='M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
}

/* Guides Page Specific Styles */
.guides-section {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.guides-header {
    text-align: center;
    margin-bottom: 3rem;
}

.guides-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.guide-category-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.guide-category-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple-primary);
    box-shadow: 0 10px 30px -10px var(--purple-primary);
}

.guide-category-card .card-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.guide-category-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.guide-category-card .card-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.875rem 2rem;
    font-weight: 500;
}

/* Hover effect for guide cards */
.guide-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.2),
        transparent
    );
    transition: 0.5s;
}

.guide-category-card:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .guides-header h1 {
        font-size: 2rem;
    }

    .guide-category-card {
        padding: 2rem 1.5rem;
    }

    .guide-category-card h2 {
        font-size: 1.5rem;
    }
}

/* Guide Categories */
.guide-categories {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.guide-category-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.guide-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-primary);
    box-shadow: 0 20px 40px -20px rgba(139, 92, 246, 0.25);
}

.guide-category-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.guide-category-card .card-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--purple-light);
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.guide-category-card .card-btn:hover {
    background: var(--purple-primary);
    color: var(--text);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .guide-categories {
        padding: 2rem 1rem;
        gap: 1rem;
    }

    .guide-category-card {
        padding: 1.5rem;
    }

    .guide-category-card h2 {
        font-size: 1.5rem;
    }
}

/* List View for Guides */
.guides-list-view {
    padding: 1rem 2rem 4rem;  /* Reduced top padding */
    max-width: 900px;
    margin: 0 auto;
}

.guides-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guides-list .guide-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.guides-list .guide-card:hover {
    transform: translateY(-2px);
    border-color: var(--purple-primary);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.guides-list .guide-content {
    flex: 1;
    margin-right: 2rem;
}

.guides-list .card-btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .guides-list-view {
        padding: 2rem 1rem;
    }

    .guides-list .guide-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .guides-list .guide-content {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;  /* Reduced from 1200px for better proportions */
    margin: 0 auto;
    padding: 4rem 2rem;  /* Increased padding for better spacing */
}

.resources-grid .guide-card {
    min-height: 250px;  /* Increased for better proportions */
    text-align: center;
    padding: 2.5rem;  /* Increased padding */
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Center content vertically */
}

.resources-grid .guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;  /* Increased gap between elements */
    margin-bottom: 2rem;  /* Space before button */
}

.resources-grid .guide-card h2 {
    font-size: 1.75rem;  /* Larger title */
    margin-bottom: 0.5rem;
}

.resources-grid .guide-card p {
    max-width: 300px;  /* Constrain text width */
    margin: 0 auto;
}

.resources-grid .card-btn {
    margin-top: auto;  /* Push button to bottom */
    padding: 0.875rem 2rem;  /* Wider button */
    min-width: 180px;  /* Minimum button width */
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .resources-grid .guide-card {
        min-height: 220px;
        padding: 2rem;
    }
}

/* Section Divider */
.section-divider {
    text-align: center;
    padding: 3rem 0 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-divider h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-divider p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .section-divider {
        padding: 2rem 1rem 1.5rem;
    }
    
    .section-divider h2 {
        font-size: 1.75rem;
    }
    
    .section-divider p {
        font-size: 1rem;
    }
}

/* Coming Soon Section */
.coming-soon {
    background: linear-gradient(
        45deg,
        rgba(139, 92, 246, 0.05),
        rgba(17, 17, 17, 0.95),
        rgba(139, 92, 246, 0.05)
    );
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.1);
}

.coming-soon h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    animation: textGlow 2s ease-in-out infinite;
}

.coming-soon p {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 3rem;
    opacity: 0.8;
}

.submit-guide-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple-light);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.submit-guide-btn:hover {
    background: var(--purple-primary);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

@media (max-width: 768px) {
    .coming-soon {
        padding: 4rem 1.5rem;
        margin: 0 1rem;
        border-radius: 16px;
    }

    .coming-soon h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .coming-soon p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .submit-guide-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Coming Soon / Error Pages */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 2rem;
}

.error-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
    max-width: 500px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.error-card h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--purple-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

.error-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .error-card {
        padding: 2rem;
    }

    .error-card h1 {
        font-size: 2.5rem;
    }

    .error-card p {
        font-size: 1rem;
    }
}

/* Discord Widget Overlay */
.discord-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.discord-widget {
    position: absolute;
    bottom: calc(100% + 1rem);  /* Position above the button */
    right: 0;
    display: none;
    background: var(--bg-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.discord-widget.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.discord-widget iframe {
    border-radius: 16px;
    display: block;
}

.discord-widget-toggle {
    width: 56px;
    height: 56px;
    background: var(--purple-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    border: none;
    outline: none;
}

.discord-widget-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    background: var(--purple-light);
}

.discord-widget-toggle svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.discord-widget.active + .discord-widget-toggle svg {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .discord-widget-container {
        bottom: 10px;
        right: 10px;
    }
    
    .discord-widget {
        width: calc(100vw - 40px);
        max-width: 350px;
    }
    
    .discord-widget-toggle {
        width: 48px;
        height: 48px;
    }
    
    .discord-widget-toggle svg {
        width: 24px;
        height: 24px;
    }
}
