* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #333;
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

body.dark {
    background: #1a1a1a;
    color: #e5e5e5;
}

.container {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

body.dark .container {
    background: #2a2a2a;
    border-color: #404040;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

body.dark h1 {
    color: #ffffff;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 50px;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
}

body.dark .subtitle {
    color: #bdc3c7;
}

h3 {
    color: #2c3e50;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
}

body.dark h3 {
    color: #ffffff;
}

.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #ffffff;
    border: 2px solid #e1e8ed;
    color: #2c3e50;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark .theme-toggle {
    background: #2a2a2a;
    border-color: #404040;
    color: #ffffff;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Landing Page Styles */
.logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-align: left;
}

.tagline {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: left;
}

body.dark .tagline {
    color: #bdc3c7;
}

.description {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 50px;
    line-height: 1.6;
    text-align: left;
}

body.dark .description {
    color: #95a5a6;
}

.ril-meaning {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
}

body.dark .ril-meaning {
    background: #1a1a1a;
    border-color: #404040;
}

.ril-meaning h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.ril-meaning p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

body.dark .ril-meaning p {
    color: #bdc3c7;
}

.ril-meaning .highlight {
    color: #764ba2;
    font-weight: 700;
}

.inspiration-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #667eea;
    margin-top: 50px;
    margin-bottom: 40px;
    padding: 20px;
    border-left: 4px solid #764ba2;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: left;
    transition: all 0.3s ease;
}

body.dark .inspiration-quote {
    background: #1a1a1a;
    color: #8b9dc3;
}

.users-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.users-title {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 20px;
    gap: 20px;
    margin-top: 20px;
}

.user-card {
    background: #667eea;
    padding: 30px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.user-card:hover::before {
    opacity: 1;
}

.user-card:nth-child(5n+1) {
    background: #8b9dc3;
    grid-row-end: span 8;
}

.user-card:nth-child(5n+2) {
    background: #dda5b5;
    grid-row-end: span 6;
}

.user-card:nth-child(5n+3) {
    background: #a8c5dd;
    grid-row-end: span 10;
}

.user-card:nth-child(5n+4) {
    background: #b8d4c8;
    grid-row-end: span 7;
}

.user-card:nth-child(5n+5) {
    background: #e5c3a6;
    grid-row-end: span 9;
}

.user-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Profile Page Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-weight: 600;
}

body.dark .back-link {
    background: #2a2a2a;
    border-color: #404040;
    color: #8b9dc3;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.intro {
    font-size: 2rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

body.dark .intro {
    color: #ffffff;
}

.section {
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
}

body.dark .section {
    background: #1a1a1a;
    border-color: #404040;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body.dark .section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

ol {
    list-style-position: inside;
    padding-left: 0;
}

li {
    font-size: 1.1rem;
    color: #555;
    padding: 12px 20px;
    margin: 8px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e1e8ed;
}

body.dark li {
    background: #2a2a2a;
    color: #e5e5e5;
    border-color: #404040;
}

li:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

li a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

li a:hover {
    text-decoration: underline;
}

/* Add User Form Styles */
.add-user-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

body.dark .form-group label {
    color: #ffffff;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e1e8ed;
    background: #ffffff;
    color: #2c3e50;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

body.dark .form-group input[type="text"],
body.dark .form-group input[type="url"],
body.dark .form-group input[type="number"],
body.dark .form-group textarea {
    background: #2a2a2a;
    border-color: #404040;
    color: #e5e5e5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.influencer-group input {
    margin-bottom: 12px;
}

.form-group-inline {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group-inline input {
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e1e8ed;
    background: #ffffff;
    color: #2c3e50;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

body.dark .form-group-inline input {
    background: #2a2a2a;
    border-color: #404040;
    color: #e5e5e5;
}

.form-group-inline input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-more-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

body.dark .add-more-btn {
    background: #1a1a1a;
    border-color: #404040;
    color: #8b9dc3;
}

.add-more-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.form-actions {
    margin-top: 40px;
    text-align: center;
}

.submit-btn {
    padding: 16px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.add-link-section {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e1e8ed;
    text-align: center;
}

body.dark .add-link-section {
    background: #1a1a1a;
    border-color: #404040;
}

.add-link-section h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.add-link-section p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

body.dark .add-link-section p {
    color: #bdc3c7;
}

.add-user-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.add-user-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Contributors Benefits Page Styles */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.benefit-card {
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

body.dark .benefit-card {
    background: #1a1a1a;
    border-color: #404040;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.benefit-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

body.dark .benefit-card h3 {
    color: #ffffff;
}

.benefit-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

body.dark .benefit-card p {
    color: #bdc3c7;
}

.credit-info {
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
}

body.dark .credit-info {
    background: #1a1a1a;
    border-color: #404040;
}

.credit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e1e8ed;
}

body.dark .credit-row {
    border-bottom-color: #404040;
}

.credit-row:last-child {
    border-bottom: none;
}

.credit-label {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 500;
}

body.dark .credit-label {
    color: #e5e5e5;
}

.credit-value {
    color: #667eea;
    font-size: 1.3rem;
    font-weight: 700;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

body.dark .benefits-list li {
    background: #1a1a1a;
    border-color: #404040;
}

.benefits-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gift-card {
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

body.dark .gift-card {
    background: #1a1a1a;
    border-color: #404040;
}

.gift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.gift-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.gift-card h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

body.dark .gift-card h4 {
    color: #ffffff;
}

.gift-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
}

body.dark .gift-card p {
    color: #bdc3c7;
}

/* Footer Styles */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

body.dark .site-footer {
    background: #1a1a1a;
    border-top: 2px solid #404040;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
}

.footer-links li:hover {
    transform: none;
    box-shadow: none;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    text-align: center;
}

body.dark .footer-bottom {
    border-top-color: #404040;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .intro {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    li {
        font-size: 1rem;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
        top: 20px;
        right: 20px;
    }
}
