:root{--primary-color:#3b82f6;--primary-hover-color:#2563eb;--success-bg-color:#ecfdf5;--success-text-color:#065f46;--success-border-color:#a7f3d0;--error-bg-color:#fee2e2;--error-text-color:#991b1b;--error-border-color:#fca5a5;--border-color:#e5e7eb;--container-bg-color:#ffffff;--font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;}body{font-family:var(--font-family);background-color:#f3f4f6;color:#374151;margin:0;padding:20px;}*{box-sizing:border-box;}.app-container{width:100%;max-width:480px;margin:0 auto;background-color:var(--container-bg-color);border-radius:12px;box-shadow:0 4px 12px -2px rgb(0 0 0 / 0.05);border:1px solid var(--border-color);}header{padding:20px 24px;text-align:center;border-bottom:1px solid var(--border-color);}header h1{font-size:20px;font-weight:600;color:#111827;margin:0;}.form-content{padding:24px;display:flex;flex-direction:column;gap:20px;}#timerForm{display:contents;}.form-group{display:flex;flex-direction:column;gap:8px;}.form-group label{font-size:14px;font-weight:500;color:#4b5563;}.form-group input, .form-group select{width:100%;padding:10px 12px;border-radius:8px;border:1px solid #d1d5db;font-size:16px;font-family:inherit;}.color-style-group{display:grid;grid-template-columns:auto auto 1fr;gap:12px;align-items:end;}.color-input-group label{font-size:12px;text-align:center;font-weight:400;color:#6b7280;}.form-group input[type="color"]{width:100%;min-width:50px;height:42px;padding:4px;border-radius:8px;border:1px solid #d1d5db;}.account-type-selector{display:grid;grid-template-columns:repeat(3, 1fr);gap:10px;width:100%;margin-bottom:10px;}.account-type-selector .button-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}.account-type-btn{padding:8px 15px;border:1px solid #ddd;border-radius:4px;background: white;cursor:pointer;transition:all 0.2s;width:100%;}.account-type-btn.active{background-color:var(--success-bg-color);border-color:#6ee7b7;color:var(--success-text-color);font-weight:600;}.user-info-container{display:flex;justify-content:space-between;align-items:center;margin-top:15px;padding:8px 12px;background:#f8f9fa;border-radius:4px;border:1px solid #ddd;margin-bottom:15px;}.user-info-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
}.user-info{display:flex;flex-direction:column;gap:4px;font-size:14px;}.logout-btn{font-size:14px;color:var(--primary-color);text-decoration:none;font-weight:500;}.logout-btn:hover{text-decoration:underline;}.logout-btn {
    color: #dc3545;
    text-decoration: none;
}.btn{width:100%;padding:12px;font-size:16px;font-weight:600;border-radius:8px;border:none;cursor:pointer;text-decoration:none;text-align:center;}.btn-primary{background-color:var(--primary-color);color:white;transition:background-color 0.2s;}.btn-primary:hover{background-color:var(--primary-hover-color);}.btn-primary:disabled{background-color:#93c5fd;cursor:not-allowed;}#statusContainer{padding:12px 16px;border-radius:8px;display:none;}#statusContainer.success, #statusContainer.loading, #statusContainer.error{display:block;}#statusContainer.success{background-color:var(--success-bg-color);color:var(--success-text-color);border:1px solid var(--success-border-color);}#statusContainer.loading{background-color:#f3f4f6;color:#4b5563;}#statusContainer.error{background-color:var(--error-bg-color);color:var(--error-text-color);border:1px solid var(--error-border-color);}#preview-container{width:100%;aspect-ratio:16 / 9;border-radius:8px;border:1px solid var(--border-color);display:flex;justify-content:center;align-items:center;overflow:hidden;transition:background-color 0.2s;}#preview-text{font-size:64px;font-weight:700;transition:color 0.2s;}.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}.modal-overlay.visible{display:flex;}.modal{background:white;padding:32px;border-radius:12px;width:100%;max-width:400px;position:relative;}.modal-close-btn{position:absolute;top:10px;right:15px;font-size:28px;color:#9ca3af;background:none;border:none;cursor:pointer;}.modal h2{margin-top:0;margin-bottom:8px;font-size:20px;font-weight:600;text-align:center;}.modal-subtitle{text-align:center;margin-top:0;margin-bottom:24px;color:#6b7280;}.google-btn-container{display:flex;justify-content:center;}.credits-btn{display:flex;justify-content:space-between;align-items:center;padding-right:10px;padding-left:10px;}.top-up-btn{display:inline-flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:50%;background-color:#e5e7eb;color:#4b5563;font-weight:600;font-size:16px;cursor:pointer;transition:background-color 0.2s;}.top-up-btn:hover{background-color:#d1d5db;}.top-up-btn {
    margin-left: 5px;
    font-weight: bold;
    color: #28a745;
}

#creditsBtn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 25px;
}

.top-up-btn {
    position: absolute;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #28a745;
    cursor: pointer;
}

.account-type-selector {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.account-type-btn {
    flex: 1;
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: normal;
    color: #333;
}

.account-type-btn.active {
    background: #f8fff8;
    border-color: #d0e8d0;
    color: #28a745;
}.credit-packs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.credit-pack-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.credit-pack-btn:hover {
    border-color: #28a745;
    transform: translateY(-2px);
}

.credit-pack-btn.popular {
    border-color: #28a745;
    background: #f8fff8;
}

.credit-pack-btn.popular::before {
    content: "BEST VALUE";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
}

.credit-pack-btn .credits {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.credit-pack-btn .price {
    color: #28a745;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.credit-pack-btn .save {
    font-size: 0.9em;
    color: #666;
}.credit-cost {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}.pro-plans {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.pro-plan-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.pro-plan-btn:hover {
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pro-plan-btn.popular {
    border-color: #28a745;
    background: #f8fff8;
}

.pro-plan-btn .plan-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
}

.pro-plan-btn .plan-name {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 8px;
}

.pro-plan-btn .plan-price {
    color: #28a745;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 12px;
}

.pro-plan-btn .plan-features {
    text-align: center;
    line-height: 1.8;
    color: #666;
}

.current-subscription-box {
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.subscription-label {
    color: #666;
    font-size: 0.9em;
    margin-right: 8px;
}

.subscription-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #28a745;
}

.login-required {
    color: #dc3545;
    font-size: 0.85em;
    font-style: italic;
}

.billing-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.billing-btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    position: relative;
}

.billing-btn:hover {
    border-color: #28a745;
}

.billing-btn.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.discount-badge {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    margin-left: 5px;
    font-weight: bold;
}

.billing-btn.active .discount-badge {
    background: #fff;
    color: #ff6b6b;
}

.pro-plan-btn.current-plan {
    border-color: #6c757d;
    background: #f8f9fa;
    opacity: 0.8;
}

.pro-plan-btn .plan-badge.current {
    background: #6c757d;
}.btn-upload-font {
    width: 100%;
    padding: 12px 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-upload-font:hover {
    background: #218838;
}

.btn-upload-font.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-upload-font.disabled:hover {
    background: #6c757d;
}

#fontFile {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 2px dashed #ddd;
    border-radius: 4px;
}

.custom-fonts-list {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.custom-fonts-list h3 {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.font-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.btn-delete-font {
    padding: 5px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.btn-delete-font:hover {
    background: #c82333;
}

#fontSearch {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.font-dropdown {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.font-dropdown.show {
    display: block;
}

.font-option {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.font-option:hover {
    background: #f8f9fa;
}

.font-option.custom {
    background: #e7f5ff;
    border-left: 3px solid #74c0fc;
}

.selected-font {
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 500;
}

.custom-fonts-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.custom-font-option {
    padding: 8px;
    margin: 5px 0;
    background: #e7f5ff;
    border: 1px solid #74c0fc;
    border-radius: 4px;
    cursor: pointer;
}

.custom-font-option:hover {
    background: #d0ebff;
}.font-search-dropdown {
    display: none;
    position: absolute;
    width: 100%;
    margin-top: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.font-search-dropdown.show {
    display: block !important;
}

.color-style-group .form-group {
    position: relative;
}

#fontSearchInput {
    width: calc(100% - 20px);
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 1em;
    outline: none;
}

.font-results {
    max-height: 350px;
    overflow-y: auto;
}.btn-cancel-sub {
    padding: 8px 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-cancel-sub:hover {
    background: #c82333;
}.btn-reactivate-sub {
    padding: 8px 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-reactivate-sub:hover {
    background: #218838;
}

/* Admin Test Panel Styles */
.admin-test-panel {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border-radius: 12px;
    border: 2px dashed #fff;
    text-align: center;
}

.admin-test-header h3 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.admin-test-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 15px 0;
    font-size: 14px;
}

.admin-test-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.admin-test-btn {
    padding: 15px 20px;
    background: white;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.admin-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.test-label {
    font-weight: 600;
    color: #ff6b6b;
    font-size: 14px;
}

.test-details {
    font-size: 12px;
    color: #666;
}

/* Report Modal Styles */
#report-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#report-modal-overlay .modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#report-modal-overlay .modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
}

#report-modal-overlay .modal-close-btn:hover {
    color: #374151;
}

#report-modal-overlay .modal h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

#report-modal-overlay .modal h2 i {
    color: #ef4444;
}

#report-modal-overlay .modal-subtitle {
    margin-top: 0;
    margin-bottom: 25px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

#report-modal-overlay .form-group {
    margin-bottom: 20px;
}

#report-modal-overlay .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

#report-modal-overlay .form-group input,
#report-modal-overlay .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#report-modal-overlay .form-group input:focus,
#report-modal-overlay .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#report-modal-overlay .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#report-modal-overlay .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: flex-end;
}

#report-modal-overlay .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
}

#report-modal-overlay .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

#report-modal-overlay .btn-secondary:hover {
    background: #e5e7eb;
}

#report-modal-overlay .btn-primary {
    background: var(--primary-color);
    color: white;
}

#report-modal-overlay .btn-primary:hover {
    background: var(--primary-hover-color);
}

.report-problem-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    margin-top: 10px;
}

.report-problem-btn:hover {
    background: #fde68a;
    border-color: #f59e0b;
    color: #b45309;
    text-decoration: none;
}

.report-problem-btn i {
    font-size: 16px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #3b82f6;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    animation: toastSlideIn 0.3s ease-out forwards;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-icon {
    font-size: 18px;
    margin-top: 2px;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-left: 12px;
}

.toast-close:hover {
    color: #6b7280;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

