/**
 * Kahve Falı Uygulaması - Ana Stil Dosyası
 * Modern, responsive ve kullanıcı dostu tasarım
 */

/* === GENEL STIL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --primary-dark: #654321;
    --secondary-color: #D2691E;
    --accent-color: #FF8C00;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* === NAVBAR === */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.site-notifications {
    position: relative;
}

.site-notification-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.25s ease;
}

.site-notification-button:hover,
.site-notification-button[aria-expanded="true"] {
    background-color: rgba(139, 69, 19, 0.1);
    color: var(--primary-color);
}

.site-notification-icon {
    font-size: 18px;
    line-height: 1;
}

.site-notification-text {
    font-weight: 600;
}

.site-notification-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--danger-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.site-notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 200;
}

.site-notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
}

.site-notification-clear {
    border: none;
    background: none;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
}

.site-notification-list {
    display: flex;
    flex-direction: column;
    max-height: 360px;
    overflow-y: auto;
}

.site-notification-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 16px 18px;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.site-notification-item:hover {
    background-color: rgba(139, 69, 19, 0.06);
}

.site-notification-item.is-unread {
    background-color: rgba(139, 69, 19, 0.08);
}

.site-notification-item-title {
    font-weight: 700;
    color: var(--text-color);
}

.site-notification-item-body,
.site-notification-item-time,
.site-notification-empty {
    color: var(--text-light);
}

.site-notification-item-time {
    font-size: 12px;
}

.site-notification-empty {
    padding: 20px 18px;
}

.site-toast-host {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(360px, calc(100vw - 24px));
}

.site-toast {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-toast-title {
    font-weight: 700;
}

.site-toast-body {
    color: var(--text-light);
    text-align: left;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(139, 69, 19, 0.1);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

/* === ALERTS === */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* === AUTH PAGES === */
.auth-page {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-box {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-form small {
    color: var(--text-light);
    font-size: 12px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* === WELCOME SECTION === */
.welcome-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.welcome-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.credit-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.credit-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    padding: 20px;
    border-radius: 10px;
    color: var(--white);
    flex: 1;
    min-width: 250px;
}

.credit-icon {
    font-size: 40px;
}

.credit-details {
    display: flex;
    flex-direction: column;
}

.credit-label {
    font-size: 14px;
    opacity: 0.9;
}

.credit-amount {
    font-size: 32px;
    font-weight: 700;
}

/* === HERO SECTION === */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    align-items: center;
}

.hero-content h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 18px;
}

.features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.feature-icon {
    font-size: 30px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* === INFO SECTION === */
.info-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.info-section h3 {
    text-align: center;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step p {
    color: var(--text-light);
}

/* === FORTUNE CONTAINER === */
.fortune-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.fortune-container h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.fortune-intro {
    color: var(--text-light);
    margin-bottom: 30px;
}

.credit-warning {
    background-color: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.credit-warning .icon {
    font-size: 24px;
}

/* === UPLOAD SECTION === */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: rgba(139, 69, 19, 0.05);
}

.upload-label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.upload-icon {
    font-size: 40px;
}

.upload-text {
    font-weight: 600;
    color: var(--primary-color);
}

.upload-hint {
    font-size: 12px;
    color: var(--text-light);
}

.upload-box .preview {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 10px;
}

.upload-box .preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.upload-actions {
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px 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); }
}

.fortune-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.option-icon {
    font-size: 20px;
}

.form-select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--white);
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
}

.upload-box.has-preview {
    border-style: solid;
    border-color: rgba(139, 69, 19, 0.25);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(139, 69, 19, 0.05));
}

.upload-box .preview {
    padding: 12px;
}

.upload-box .preview img {
    width: 100%;
    height: 100%;
}

.waiting-message {
    text-align: center;
    background: linear-gradient(180deg, rgba(139, 69, 19, 0.08), rgba(210, 105, 30, 0.16));
    border: 1px solid rgba(139, 69, 19, 0.15);
    border-radius: 18px;
    padding: 32px 24px;
}

.waiting-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.waiting-message h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.waiting-message p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.waiting-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin-bottom: 20px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}
/* === FORTUNE RESULT === */
.fortune-result {
    text-align: center;
}

.fortune-result h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 28px;
}

.fortune-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.fortune-photos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.fortune-text {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: left;
    white-space: pre-line;
}

.fortune-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === FORTUNE LIST === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.empty-state {
    background-color: var(--white);
    padding: 60px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.empty-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.fortune-list {
    display: grid;
    gap: 30px;
}

.fortune-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.fortune-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 69, 19, 0.16);
}

.fortune-card:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.14);
}

.fortune-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fortune-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fortune-date {
    color: var(--text-light);
    font-size: 14px;
}

.fortune-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.16);
    color: #9a6700;
}

.status-ready,
.status-notified {
    background-color: rgba(40, 167, 69, 0.14);
    color: #1d7a35;
}

.fortune-card-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 120px;
    flex-shrink: 0;
}

.fortune-card-photos img {
    width: 100%;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
}

.fortune-card-body {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.fortune-card-content {
    min-width: 0;
    flex: 1;
}

.fortune-card-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.fortune-card-text {
    color: var(--text-color);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.fortune-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

/* === PROFILE === */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.profile-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-color);
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
}

.info-value {
    color: var(--text-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.stat-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.credit-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--bg-color);
    border-radius: 5px;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.transaction-description {
    font-weight: 500;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-light);
}

.transaction-amount {
    font-size: 18px;
    font-weight: 700;
}

.transaction-amount.purchase {
    color: var(--success-color);
}

.transaction-amount.usage {
    color: var(--danger-color);
}

/* === BUY CREDITS === */
.buy-credits-container {
    max-width: 1000px;
    margin: 0 auto;
}

.buy-credits-container h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.current-credit {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 18px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.package-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.package-card.popular {
    border: 3px solid var(--accent-color);
}

.package-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.package-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.package-header h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.package-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    color: var(--text-light);
}

.package-features {
    list-style: none;
    margin-bottom: 25px;
}

.package-features li {
    padding: 10px 0;
    color: var(--text-color);
}

.payment-info {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.payment-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.payment-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

.empty-text {
    color: var(--text-light);
    text-align: center;
    padding: 20px;
}

/* === FOOTER === */
.footer {
    background-color: var(--white);
    padding: 20px 0;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
    text-align: center;
    color: var(--text-light);
    margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .fortune-container,
    .hero-section,
    .info-section {
        padding: 28px;
    }

    .upload-grid,
    .fortune-options,
    .fortune-photos,
    .fortune-card-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
    }

    .nav-brand {
        text-align: center;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .site-notifications {
        width: 100%;
    }

    .site-notification-button {
        width: 100%;
        justify-content: center;
    }

    .site-notification-panel {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .nav-link {
        flex: 1 1 140px;
        text-align: center;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .credit-info,
    .page-header,
    .fortune-card-header,
    .transaction-item,
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .fortune-container,
    .auth-box,
    .profile-card,
    .package-card,
    .payment-info,
    .welcome-section,
    .info-section {
        padding: 24px;
    }

    .upload-grid,
    .fortune-options,
    .fortune-photos,
    .fortune-card-photos,
    .profile-grid,
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .credit-card,
    .stats-grid {
        width: 100%;
    }

    .fortune-card-body {
        flex-direction: column;
    }

    .fortune-card-photos {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }

    .fortune-actions,
    .upload-actions {
        width: 100%;
    }

    .btn,
    .btn-large {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .nav-brand h1 {
        font-size: 20px;
    }

    .fortune-container,
    .auth-box,
    .profile-card,
    .package-card,
    .payment-info,
    .welcome-section,
    .info-section,
    .waiting-message {
        padding: 18px;
    }

    .upload-box {
        min-height: 240px;
        aspect-ratio: auto;
    }

    .fortune-result h3,
    .hero-content h3,
    .info-section h3 {
        font-size: 24px;
    }

    .fortune-text {
        padding: 20px;
        font-size: 15px;
    }

    .site-toast-host {
        top: 76px;
        right: 12px;
    }
}
