.main-content {
    padding-top: 20px;
}

.content-container {
    padding: 0 16px;
    max-width: 100%;
}

.auto-schedule-intro {
    padding: 20px;
    margin-bottom: 24px;
}

.auto-schedule-intro h1 {
    font-size: 22px;
}

.intro-desc {
    font-size: 14px;
    line-height: 1.7;
}

.login-prompt, .upgrade-prompt {
    padding: 12px;
}

.login-prompt p, .upgrade-prompt p {
    font-size: 13px;
    flex-wrap: wrap;
}

.feature-preview {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.preview-section {
    padding: 16px;
}

.preview-section h4 {
    font-size: 16px;
}

.preview-section p {
    font-size: 13px;
}

.section-desc {
    font-size: 13px;
}

.schedule-section h4 {
    font-size: 16px;
    flex-wrap: wrap;
}

.schedule-section h4 small {
    display: block;
    margin-left: 0;
    margin-top: 4px;
    width: 100%;
}

.input-hint {
    font-size: 11px;
}

.auto-schedule-container {
    padding: 0;
}

.auto-schedule-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.auto-schedule-header .header-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.auto-schedule-header h3 {
    font-size: 18px;
}

.auto-schedule-header h3 i {
    font-size: 20px;
}

.remaining-info {
    font-size: 12px;
    padding: 6px 10px;
    align-self: flex-start;
}

.btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
}

.schedule-section {
    padding: 16px;
    margin-bottom: 16px;
}

.schedule-section h4 {
    font-size: 15px;
    margin-bottom: 16px;
}

.schedule-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
}

.schedule-status {
    width: 100%;
}

.schedule-time {
    min-width: auto;
    width: 100%;
    font-size: 13px;
}

.schedule-keyword {
    min-width: auto;
    width: 100%;
    font-size: 13px;
}

.schedule-expires {
    font-size: 11px;
    margin-left: 0;
    margin-top: 8px;
}

.schedule-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    margin-top: 8px;
}

.empty-state {
    padding: 60px 16px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-state::before {
    content: '📭';
    font-size: 40px;
    opacity: 0.5;
}

.loading-state {
    padding: 50px 16px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-state::before {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.telegram-settings {
    padding: 20px 16px;
    margin-top: 20px;
}

.telegram-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.telegram-header h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.telegram-header h4 i {
    font-size: 20px;
}

.telegram-desc {
    font-size: 13px;
}

.telegram-content {
    gap: 16px;
}

.telegram-form-group {
    gap: 8px;
}

.telegram-form-group-inline {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.telegram-label {
    font-size: 13px;
    margin-bottom: 2px;
}

.telegram-label i {
    font-size: 15px;
}

.telegram-input-wrapper {
    flex: 1;
    min-width: 150px;
    width: 100%;
}

.telegram-input {
    padding: 11px 14px;
    font-size: 14px;
    width: 100%;
}

.telegram-hint {
    font-size: 11px;
    margin-top: 2px;
}

.telegram-hint i {
    font-size: 12px;
}

.telegram-checkbox-label {
    flex-shrink: 0;
}

.telegram-checkbox-text {
    font-size: 13px;
}

.telegram-actions {
    margin-top: 4px;
}

.telegram-save-btn {
    padding: 12px 20px;
    font-size: 14px;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-secondary {
    width: 100%;
    padding: 14px 20px;
    justify-content: center;
}

.modal-overlay {
    padding: 0;
    align-items: flex-end;
}

.modal-box {
    max-width: 100%;
    width: 100%;
    border-radius: 8px 8px 0 0;
    max-height: 85vh;
}

.modal-overlay.show .modal-box {
    transform: translateY(0);
}

.modal-box.modal-lg {
    max-width: 100%;
}

.modal-header {
    padding: 18px 20px;
    position: sticky;
    top: 0;
    background: #FAFAFA;
    z-index: 10;
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close-btn {
    font-size: 18px;
    width: 28px;
    height: 28px;
}

.modal-body {
    padding: 16px 20px;
}

.modal-desc {
    font-size: 13px;
    margin-bottom: 16px;
}

.selected-time-info {
    padding: 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    font-size: 13px;
    margin-bottom: 6px;
}

.form-control {
    padding: 14px 16px;
    font-size: 15px;
    min-height: 48px;
}

.form-row {
    flex-direction: column;
    gap: 12px;
}

.form-group.half {
    width: 100%;
}

.modal-footer {
    padding: 18px 20px;
    flex-direction: column-reverse;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: #FAFAFA;
    border-top: 1px solid var(--border);
}

.modal-footer button {
    width: 100%;
    padding: 14px;
    min-height: 48px;
}

.time-grid {
    max-height: 350px;
    padding: 4px 0;
}

.hour-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
}

.hour-row.reserved {
    padding: 12px 8px;
}

.hour-label {
    width: 100%;
    margin-bottom: 4px;
    font-size: 13px;
}

.slots {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.slot-btn {
    width: 100%;
    min-height: 44px;
    font-size: 13px;
}

.btn-sm {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 44px;
}

.completed-tabs-header {
    gap: 0;
    padding-bottom: 0;
}

.completed-tab-btn {
    padding: 10px 14px;
    min-width: 100px;
    font-size: 12px;
}

.completed-tab-btn .tab-time {
    font-size: 11px;
}

.completed-tab-btn .tab-keyword {
    font-size: 13px;
    max-width: 80px;
}

.completed-tab-btn .tab-count {
    font-size: 10px;
}

.completed-tab-pane {
    padding: 16px;
}

.result-header-info {
    padding: 12px;
    gap: 12px;
}

.result-meta-item {
    font-size: 13px;
}

.result-grid,
.products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 0 2px !important;
}

.result-card,
.product-card {
    border-radius: 6px;
}

.result-image,
.result-card-image,
.image-container {
    border-radius: 6px 6px 0 0;
}

.result-info,
.result-card-content,
.content {
    padding: 10px 8px !important;
}

.result-title,
.result-card-title,
.content h6 {
    font-size: 13px;
    height: 38px;
    margin-bottom: 4px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
}

.region-info {
    font-size: 10px;
    margin-bottom: 6px;
}

.price-time {
    margin-top: 6px;
    padding-top: 6px;
}

.result-price,
.result-card-price,
.price {
    font-size: 15px;
    margin-bottom: 0;
}

.result-meta,
.result-card-footer {
    font-size: 11px;
}
}