* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #9ca3af;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo h1 {
    color: #6366f1;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #6366f1;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login, .btn-register {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login {
    background-color: transparent;
    border: 2px solid #6366f1;
    color: #6366f1;
}

.btn-register {
    background-color: #6366f1;
    color: white;
}

.btn-login:hover {
    background-color: #6366f1;
    color: white;
}

.btn-register:hover {
    background-color: #4f46e5;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 5%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 5%;
    background-color: white;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    padding: 3rem 5%;
}

.projects h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e5e7eb;
    background-color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #6366f1;
    color: white;
    border-color: #6366f1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.project-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-badge.template {
    background-color: #dbeafe;
    color: #1e40af;
}

.project-badge.premium {
    background-color: #fef3c7;
    color: #92400e;
}

.project-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6366f1;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.author {
    color: #666;
    font-size: 0.9rem;
}

.btn-detail {
    padding: 0.5rem 1rem;
    background-color: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-detail:hover {
    background-color: #4f46e5;
}

/* Rating Section */
.rating {
    text-align: center;
    padding: 3rem 5%;
    background-color: white;
    margin-top: 2rem;
}

.rating h2 {
    margin-bottom: 0.5rem;
}

.rating p {
    color: #666;
}

/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 5%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h2,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}


/* Project Detail Page */
.project-detail-page {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-back {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 5px;
    cursor: pointer;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.project-main {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.project-badges-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.badge-premium,
.badge-quality {
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-premium {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-quality {
    background-color: #dbeafe;
    color: #1e40af;
}

.project-main h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-author {
    margin-bottom: 2rem;
}

.author-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.project-preview {
    margin: 2rem 0;
}

.preview-placeholder {
    background: #f5f5f5;
    padding: 4rem;
    text-align: center;
    border-radius: 10px;
    color: #999;
}

.project-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.readme-content {
    line-height: 1.8;
}

.readme-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.readme-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #555;
}

.readme-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.readme-content ul,
.readme-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.readme-content li {
    margin-bottom: 0.5rem;
}

.no-content {
    text-align: center;
    color: #999;
    padding: 3rem;
}

.project-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.price-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #6366f1;
    margin-bottom: 1.5rem;
}

.btn-buy {
    width: 100%;
    padding: 1rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 2rem;
}

.btn-buy:hover {
    background: #4f46e5;
}

.purchase-benefits {
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    font-size: 1.5rem;
}

.benefit-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.benefit-item p {
    color: #666;
    font-size: 0.9rem;
}

.login-reminder {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #666;
}

.login-reminder a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

/* Partner Page */
.partner-page {
    padding: 3rem 5%;
}

.partner-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.partner-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.partner-benefits {
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.partner-benefits h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    margin-bottom: 0.5rem;
}

.partner-form-section {
    max-width: 600px;
    margin: 0 auto;
}

.login-notice {
    background: #fef3c7;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}

.btn-login-now {
    padding: 0.75rem 2rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.partner-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.signature-pad {
    position: relative;
}

.signature-pad canvas {
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    cursor: crosshair;
    width: 100%;
    max-width: 500px;
    height: 200px;
}

.signature-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.btn-clear-signature {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit:hover {
    background: #4f46e5;
}

/* Prayer Times Page */
.prayer-page {
    padding: 3rem 5%;
    min-height: 70vh;
}

.prayer-permission {
    max-width: 600px;
    margin: 3rem auto;
}

.permission-box {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.permission-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.btn-permission {
    padding: 1rem 2rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin: 1.5rem 0;
}

.btn-permission:hover {
    background: #4f46e5;
}

.privacy-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.prayer-times {
    max-width: 800px;
    margin: 0 auto;
}

.location-info {
    text-align: center;
    margin-bottom: 3rem;
}

.location-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.prayer-schedule {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.prayer-item {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.prayer-item:last-child {
    border-bottom: none;
}

.prayer-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.prayer-time {
    font-size: 1.2rem;
    color: #6366f1;
    font-weight: 700;
}

/* Profile Page */
.profile-page {
    padding: 2rem 5%;
}

.profile-header {
    display: flex;
    gap: 3rem;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: bold;
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge-verified,
.badge-role {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-verified {
    background: #dcfce7;
    color: #166534;
}

.badge-role {
    background: #dbeafe;
    color: #1e40af;
}

.profile-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.profile-subtitle {
    color: #666;
    margin-bottom: 1rem;
}

.profile-bio {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-box strong {
    font-size: 1.5rem;
    color: #6366f1;
}

.btn-contact {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.profile-projects h2 {
    margin-bottom: 2rem;
}

/* About Page */
.about-page {
    padding: 3rem 5%;
}

.back-button {
    margin-bottom: 2rem;
}

.back-button a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.about-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.vision-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.vm-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vm-card h3 {
    margin-bottom: 1rem;
    color: #6366f1;
}

.sukacoding-logo {
    text-align: center;
    margin: 4rem 0;
}

.logo-container {
    max-width: 300px;
    margin: 0 auto;
}

.logo-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
}

.logo-placeholder h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-program {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-program h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.program-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.creator {
    margin-top: 3rem;
    color: #666;
}

/* Legal Pages */
.legal-page {
    padding: 3rem 5%;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-meta {
    color: #666;
    margin-bottom: 1rem;
}

.legal-intro {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.legal-section ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.warning-text {
    background: #fee2e2;
    padding: 1rem;
    border-left: 4px solid #ef4444;
    border-radius: 5px;
    margin-top: 1rem;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.auth-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-auth:hover {
    background: #4f46e5;
}

.auth-footer {
    text-align: center;
    color: #666;
    margin-top: 1rem;
}

.auth-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .project-detail-content {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .prayer-item {
        padding: 1rem;
    }
}


/* Google Sign-In Styling */
.google-signin-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider span {
    padding: 0 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
}

/* User Menu (when logged in) */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #6366f1;
}

.user-name {
    font-weight: 500;
    color: #333;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #dc2626;
}

/* Google Button Container */
#g_id_onload {
    position: relative;
}

.g_id_signin {
    display: flex;
    justify-content: center;
}


/* OTP Registration Steps */
.form-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.otp-info {
    background: #dbeafe;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.otp-info p {
    margin: 0.5rem 0;
    color: #1e40af;
}

.otp-hint {
    font-size: 0.85rem;
    color: #64748b !important;
}

.form-group input[name="otp"] {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: bold;
}

.otp-actions {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    flex: 1;
    padding: 1rem;
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.otp-resend {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.otp-resend a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.otp-resend a:hover {
    text-decoration: underline;
}
