/* --- 1. RESET VA ASOSIY SOZLAMALAR --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    color: #111111;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Konteyner */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. HEADER VA NAVIGATSIYA --- */
.site-header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 10001; /* Menyudan yuqorida turishi uchun */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.burger-menu {
    position: relative;
    z-index: 10002; /* Tugma har doim eng ustida bosiladigan bo'ladi */
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    color: #000000;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 3. TO'LIQ EKRANLI MOBIL MENYU --- */
.full-screen-menu {
    position: fixed;
    top: 60px; /* Header balandligi */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: #ffffff;
    z-index: 10000;
    display: none;
    padding-top: 20px;
    overflow-y: auto;
}

.full-screen-menu.active {
    display: block !important;
}

.menu-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.menu-item {
    font-size: 17px;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    padding: 18px 0;
    width: 100%;
    border-bottom: 1px solid #f2f2f2;
}

.login-link {
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.menu-btn {
    margin-top: 25px;
    width: auto;
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 12px;
}

/* --- 4. HERO BO'LIMI --- */
.hero {
    padding: 40px 0 30px;
    text-align: center;
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #000000;
}

.hero p {
    font-size: 15px;
    color: #555555;
    margin-bottom: 24px;
}

/* --- 5. TUGMALAR (BUTTONS) --- */
.btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.btn-warning {
    background-color: #ffcc00;
    color: #000000;
}

.btn-secondary {
    background-color: #f2f2f7;
    color: #000000;
}

/* --- 6. QANDAY ISHLAYDI BO'LIMI --- */
.how-it-works {
    padding: 30px 0 40px;
    text-align: center;
}

.how-it-works h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card .icon {
    width: 64px;
    height: 64px;
    background-color: #f5f5f7;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
}

.step-card .icon svg {
    width: 28px;
    height: 28px;
    color: #000000;
}

.step-card p {
    font-size: 14px;
    color: #333333;
    max-width: 290px;
    font-weight: 500;
}

/* --- 7. AUTH VA FORMALAR --- */
.auth-card {
    background: #ffffff;
    padding: 10px 0;
}

.auth-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.input-prefix-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding-left: 12px;
    background: #fafafa;
}

.input-prefix-wrapper .prefix {
    font-size: 14px;
    color: #888;
    font-weight: 600;
}

.input-prefix-wrapper input {
    border: none !important;
    background: transparent !important;
}

/* --- 8. ANIMATSIYALI SARLAVHA --- */
.animated-title-box {
    text-align: center;
    margin: 20px 0 30px;
}

.animated-title-box h1 {
    font-size: 26px;
    font-weight: 800;
    color: #111111;
    line-height: 1.3;
}

.cursor {
    font-weight: 300;
    color: #111111;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- 9. FILTRLASH VA MUALLIFLAR RO'YXATI --- */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f4f6;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
}

.authors-list {
    display: flex;
    flex-direction: column;
}

.author-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.author-info-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar-small {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #111111;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.author-title {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    display: block;
}

.social-icons {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    opacity: 0.7;
}

.btn-support {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    text-decoration: none;
    padding: 8px 14px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-support:hover {
    background: #eeeeee;
}

/* --- 10. PROFIL VA DONAT FORMASI --- */
.author-profile {
    text-align: center;
    margin-bottom: 24px;
}

.author-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.author-avatar-large {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 auto 12px;
}

.author-name {
    font-size: 22px;
    font-weight: 800;
}

.author-bio {
    font-size: 14px;
    color: #666666;
    margin-top: 6px;
}

.donate-card {
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    padding: 20px;
}

.donate-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.amount-presets {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.preset-btn {
    flex: 1;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    color: #666666;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #000000;
}

.payment-methods {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    font-size: 13px;
    font-weight: 600;
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* --- 11. DASHBOARD USLUBLARI --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.badge {
    background: #e6f4ea;
    color: #137333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.link-box {
    background: #f5f5f7;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.link-box p {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.copy-input-group {
    display: flex;
    gap: 8px;
}

.copy-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
}

.btn-copy {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.stat-card {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 16px;
    border-radius: 14px;
}

.stat-title {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #000;
}

.recent-donations h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.donation-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.donation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.donator-info strong {
    font-size: 14px;
    display: block;
}

.donator-msg {
    font-size: 12px;
    color: #555;
    margin-top: 2px;
}

.donate-amount {
    font-size: 14px;
    font-weight: 700;
    color: #137333;
}

/* --- 12. MUALLIFLAR BO'LIMI VA AVATARLAR --- */
.authors-section {
    padding: 30px 0;
    text-align: center;
}

.authors-section h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000000;
}

.author-avatar-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    overflow: hidden;
    background-color: #f2f2f7;
}

.author-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.avatar-bg-1 { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.avatar-bg-2 { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.avatar-bg-3 { background: linear-gradient(135deg, #11998e, #38ef7d); }

/* --- 13. FOOTER BO'LIMI --- */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 40px 0 30px;
    margin-top: 60px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.footer-socials {
    margin-bottom: 24px;
}

.footer-socials a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.footer-legal {
    font-size: 12px;
    color: #888888;
    line-height: 1.6;
    border-top: 1px solid #222222;
    padding-top: 20px;
}

.footer-legal a {
    color: #aaaaaa;
    text-decoration: underline;
}