:root {
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary-color: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.5);
    --accent-color: #06b6d4;
    --text-main: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 41, 59, 0.75);
    --success-color: #10b981;
    --danger-color: #ef4444;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-image: url('bg-modern.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: brightness(0.7);
}

/* Glassmorphism Card */
.dashboard-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    animation: fadeInUp 0.8s ease-out;
}

/* Header */
.dashboard-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.dashboard-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #60a5fa, #c084fc, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    letter-spacing: -1px;
}

.dashboard-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.dashboard-info {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
    transition: var(--transition-speed);
}

.dashboard-info:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* Content */
.dashboard-content {
    padding: 3rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-speed);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px var(--primary-glow);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Forms Grid */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.form-section {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.form-title i {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control-modern {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: white;
    font-size: 1rem;
    transition: var(--transition-speed);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-control-modern::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

select.form-control-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

select.form-control-modern option {
    background: #1e293b;
    color: white;
}

/* Buttons */
.btn-modern {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark, #2563eb));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-success-modern {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Status Messages */
.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.status-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    display: block;
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    display: block;
}

/* Download Section */
.download-section {
    text-align: center;
    margin-top: 2rem;
}

.download-btn {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-main);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-speed);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading Spinner */
.loading {
    color: transparent !important;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    margin-left: -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */


/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-speed);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(20px);
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.plan-requests {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
    text-align: left;
}

.plan-features li {
    padding: 0.8rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.plan-features li i {
    color: var(--success-color);
    font-size: 1rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 5px;
    border-radius: 50%;
}

/* Payment Result */
.payment-result {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 3rem;
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.payment-result.show {
    display: block;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.qr-container {
    text-align: center;
    margin-bottom: 2.5rem;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    display: inline-block;
}

.qr-container img {
    max-width: 250px;
    border-radius: 8px;
}

.pix-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-speed);
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.countdown {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 1.5rem;
}

/* API Docs Section */
.api-docs-section {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
}

.docs-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.docs-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.docs-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-speed);
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.highlight-item i {
    color: var(--accent-color);
    font-size: 2rem;
    flex-shrink: 0;
}

.highlight-item strong {
    color: var(--text-main);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.docs-actions {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.btn-docs {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-docs:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.support-note {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    color: #fde047;
    font-size: 0.95rem;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 800px;
}

.support-note i {
    color: #facc15;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.support-note strong {
    color: #fef08a;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem; /* Smaller title */
    }
    
    .dashboard-content {
        padding: 1rem 0.5rem; /* Minimal side padding */
    }
    
    /* Compact Features Grid for Mobile */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 0.8rem 0.2rem;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%; /* Ensure it fills the grid cell */
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        border-radius: 10px;
    }

    .feature-title {
        font-size: 0.75rem;
        margin-bottom: 0;
        word-break: break-word;
        hyphens: auto;
    }

    .feature-description {
        display: none; /* Hide description on mobile */
    }
    
    .forms-grid {
        grid-template-columns: 1fr;
    }

    /* Form inputs on mobile */
    .form-control-modern {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }

    .form-control-modern::placeholder {
        font-size: 0.75rem;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-title {
        font-size: 1.2rem;
    }
    
    .main-container {
        padding: 0.5rem; /* Minimal container padding */
    }

    /* Compact Pricing Cards for Mobile */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .pricing-card {
        padding: 0.8rem;
    }

    .plan-name {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .plan-price {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }

    .plan-requests {
        font-size: 0.75rem;
        margin-bottom: 0;
        padding-bottom: 0;
        border: none;
    }

    .plan-features {
        display: none;
    }
    
    .pricing-card.featured::before {
        font-size: 0.5rem;
        padding: 3px 25px;
        top: 8px;
        right: -22px;
    }

    /* Compact Docs Highlights for Mobile */
    .api-docs-section {
        padding: 1.5rem 0.5rem;
        margin-bottom: 2rem;
    }

    .docs-title {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .docs-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .docs-highlights {
        display: flex;
        justify-content: space-between;
        gap: 0.4rem;
        width: 100%;
    }

    .highlight-item {
        flex: 1;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 0.2rem; /* More vertical padding */
        gap: 0.4rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04); /* Slightly lighter for contrast */
    }

    .highlight-item i {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .highlight-item strong {
        font-size: 0.7rem;
        margin-bottom: 0;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
        padding: 0 2px;
    }

    .highlight-item p {
        display: none;
    }
}
