/* Customer Support Reply Generator Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design system variables */
:root {
    /* Clean, minimal backgrounds */
    --background: 0 0% 100%;
    --foreground: 0 0% 13%;
    
    /* Subtle surfaces */
    --surface: 0 0% 99%;
    --surface-secondary: 0 0% 97%;
    
    /* Clean borders and inputs */
    --border: 0 0% 90%;
    --border-subtle: 0 0% 95%;
    --input: 0 0% 97%;
    --input-border: 0 0% 88%;
    
    /* Text hierarchy */
    --text-primary: 0 0% 13%;
    --text-secondary: 0 0% 40%;
    --text-tertiary: 0 0% 60%;
    --text-disabled: 0 0% 75%;
    
    /* Claude/Anthropic orange accent */
    --accent: 17 82% 59%;
    --accent-hover: 17 82% 52%;
    --accent-foreground: 0 0% 100%;
    
    /* Subtle interactive states */
    --hover: 0 0% 96%;
    --active: 0 0% 94%;
    
    /* Clean shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Smooth radius */
    --radius: 12px;
    --radius-sm: 8px;

    /* Additional variables for SEO section */
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
}

.container {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    flex: 1;
}

.main-content {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
}

.subtitle {
    color: hsl(var(--text-secondary));
    font-size: 1.125rem;
    font-weight: 400;
}

/* Main interface */
.interface {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form sections */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
}

/* Textarea container */
.textarea-container {
    position: relative;
}

/* Text input for customer name */
.text-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--input-border));
    border-radius: var(--radius);
    color: hsl(var(--text-primary));
    font-size: 0.9375rem;
    line-height: 1.6;
    transition: all 0.2s ease-out;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

.text-input::placeholder {
    color: hsl(var(--text-tertiary));
}

.text-input:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1), var(--shadow-md);
}

.textarea {
    width: 100%;
    min-height: 140px;
    padding: 1rem;
    padding-bottom: 2rem;
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--input-border));
    border-radius: var(--radius);
    color: hsl(var(--text-primary));
    font-size: 0.9375rem;
    line-height: 1.6;
    resize: none;
    transition: all 0.2s ease-out;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

.textarea::placeholder {
    color: hsl(var(--text-tertiary));
}

.textarea:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1), var(--shadow-md);
}

/* Character counter */
.character-counter {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 0.6875rem;
    color: hsl(var(--text-tertiary));
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.character-counter.warning {
    color: #dc2626;
    background: #fef2f2;
}

/* Chip Selectors */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    background: hsl(var(--background));
    color: hsl(var(--text-secondary));
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-out;
    user-select: none;
    font-family: inherit;
}

.chip:hover {
    background: hsl(var(--hover));
    border-color: hsl(var(--border));
}

.chip.active {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-color: hsl(var(--accent));
}

.chip svg {
    width: 1rem;
    height: 1rem;
}

.chip .emoji {
    font-size: 0.875rem;
}

/* Tracking Section */
.tracking-card {
    padding: 1rem;
    border: 1px solid hsl(var(--accent) / 0.2);
    border-radius: var(--radius);
    background: linear-gradient(180deg, hsl(17 82% 97.5%), hsl(18 75% 98%));
}

.tracking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tracking-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tracking-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    background: hsl(var(--accent) / 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tracking-icon svg {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--accent));
}

.tracking-text h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
}

.tracking-text p {
    font-size: 0.75rem;
    color: hsl(var(--text-secondary));
}

/* Toggle Switch */
.toggle {
    width: 2.75rem;
    height: 1.5rem;
    background: hsl(var(--border));
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle.active {
    background: hsl(var(--accent));
}

.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toggle.active::after {
    transform: translateX(1.25rem);
}

/* Tracking Input */
.tracking-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid hsl(var(--input-border));
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    background: hsl(var(--background));
    color: hsl(var(--text-primary));
    margin-top: 0.75rem;
    transition: all 0.2s ease-out;
}

.tracking-input:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1);
}

/* Slider control */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slider-label {
    color: hsl(var(--text-secondary));
    font-size: 0.875rem;
    font-weight: 500;
}

.slider-track-container {
    position: relative;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: hsl(var(--text-tertiary));
    margin-bottom: 0.5rem;
}

.slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: linear-gradient(to right, hsl(var(--accent)) 0%, hsl(var(--accent)) 50%, hsl(var(--surface-secondary)) 50%, hsl(var(--surface-secondary)) 100%);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: hsl(var(--accent));
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease-out;
}

.slider::-webkit-slider-thumb:hover {
    background: hsl(var(--accent-hover));
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: hsl(var(--accent));
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: none;
    transition: all 0.2s ease-out;
}

.slider::-moz-range-thumb:hover {
    background: hsl(var(--accent-hover));
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider:focus {
    box-shadow: 0 0 0 3px hsl(var(--accent) / 0.3);
}

/* Primary button */
.primary-button-container {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.primary-button {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease-out;
    font-family: inherit;
}

.primary-button:hover {
    background: hsl(var(--accent-hover));
    box-shadow: var(--shadow-lg);
}

.primary-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--accent) / 0.3), var(--shadow-lg);
}

.primary-button:disabled {
    background: hsl(var(--text-disabled));
    cursor: not-allowed;
    transform: none;
}

.primary-button:active {
    transform: scale(0.98);
}

/* Output Section */
.output-section {
    margin-top: 0.5rem;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.output-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-button {
    width: 2rem;
    height: 2rem;
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--border-subtle));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--text-disabled));
    cursor: pointer;
    transition: all 0.2s ease-out;
    box-shadow: var(--shadow-sm);
}

.icon-button:hover {
    color: hsl(var(--text-tertiary));
    background: hsl(var(--surface-secondary));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.icon-button svg {
    width: 14px;
    height: 14px;
}

.output-box {
    border: 1px solid hsl(var(--input-border));
    border-radius: var(--radius);
    padding: 1.25rem;
    min-height: 160px;
    background: hsl(var(--surface));
    box-shadow: var(--shadow-sm);
}

.output-placeholder {
    color: hsl(var(--text-tertiary));
    font-size: 0.9375rem;
    text-align: center;
    padding: 2rem 0;
}

.output-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    white-space: pre-wrap;
    color: hsl(var(--text-primary));
}

/* Loading state */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: hsl(var(--text-secondary));
}

.loading-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid hsl(var(--border));
    border-top-color: hsl(var(--accent));
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.error-message {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    color: #dc2626;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

/* Footer / Powered by */
.ai-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border-subtle));
}

.ai-footer-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--text-tertiary));
    font-size: 0.8125rem;
}

.claude-logo {
    height: 16px;
    width: auto;
    opacity: 0.7;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* ====================================
   NEW COMPREHENSIVE SEO SECTION STYLES
   ==================================== */

.seo-section {
    background-color: transparent; /* was hsl(var(--surface)), 99% lightness: a full-width fill hides the page-glow (z-index -1) */
    padding: 4rem 1rem;
}

.seo-container {
    max-width: 48rem;
    margin: 0 auto;
}

.seo-space-y-12 > * + * {
    margin-top: 3rem;
}

.seo-space-y-4 > * + * {
    margin-top: 1rem;
}

.seo-space-y-3 > * + * {
    margin-top: 0.75rem;
}

.seo-text-center {
    text-align: center;
}

/* Hero Section */
.seo-hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
}

.seo-hero-description {
    color: hsl(var(--muted-foreground));
    max-width: 36rem;
    margin: 0 auto;
    font-size: 0.875rem;
    line-height: 1.625;
}

.seo-accent-text {
    color: hsl(var(--accent));
    font-weight: 500;
}

/* Claude Section */
.seo-claude-section {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, rgba(217, 119, 87, 0.05), hsl(var(--card)), rgba(217, 119, 87, 0.1));
    border: 1px solid rgba(217, 119, 87, 0.2);
    padding: 1.5rem;
}

.seo-claude-bg-logo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.1;
    width: 6rem;
    height: 6rem;
    color: #d97757;
}

.seo-claude-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seo-claude-icon-wrapper {
    height: 36px;
    width: 36px;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background-color: rgba(217, 119, 87, 0.1);
}

.seo-claude-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #d97757;
}

.seo-claude-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.seo-claude-subtitle {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.seo-claude-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
    max-width: 32rem;
    margin-top: 1rem;
}

.seo-privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding-top: 0.5rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .seo-privacy-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.seo-privacy-item {
    text-align: center;
}

.seo-privacy-icon-wrapper {
    margin: 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: rgba(217, 119, 87, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-privacy-icon {
    width: 1rem;
    height: 1rem;
    color: #d97757;
}

.seo-privacy-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-top: 0.375rem;
}

.seo-privacy-desc {
    font-size: 0.625rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.25;
}

/* Feature Cards */
.seo-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-align: center;
}

.seo-features-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .seo-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.seo-feature-card {
    position: relative;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    transition: border-color 0.2s;
}

.seo-feature-card:hover {
    border-color: rgba(217, 119, 87, 0.3);
}

.seo-feature-number {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--muted));
    opacity: 0.6;
    user-select: none;
    line-height: 1;
}

.seo-feature-icon-wrapper {
    border-radius: 0.5rem;
    gap: 0.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.seo-feature-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: hsl(var(--accent));
}

.seo-feature-content {
    padding-right: 2rem;
}

.seo-feature-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.seo-feature-desc {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    margin-top: 0.5rem;
}

.seo-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.seo-feature-tag {
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: rgba(217, 119, 87, 0.1);
    color: hsl(var(--accent));
}

/* How It Works */
.seo-how-it-works-wrapper {
    display: flex;
    justify-content: center;
    text-align: center;
    position: relative;
}

.seo-how-it-works-wrapper::before {
    content: '';
    height: 5px;
    width: 40px;
    background-color: rgba(217, 119, 87, 0.1);
    position: absolute;
    top: -24px;
}

.seo-how-it-works {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    padding: 1.25rem;
    width: fit-content;
}

.seo-how-it-works-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.seo-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seo-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.seo-step-number {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: rgba(217, 119, 87, 0.1);
    color: hsl(var(--accent));
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-step-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-align: left;
}

/* Stats Section */
.seo-stats-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

.seo-stat-item {
    text-align: center;
}

.seo-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--accent));
}

.seo-stat-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
}

/* Best Practices */
.seo-practices-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.seo-practice-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: rgba(217, 119, 87, 0.05);
    border: 1px solid rgba(217, 119, 87, 0.1);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: hsl(var(--foreground));
}

.seo-practice-icon {
    width: 0.75rem;
    height: 0.75rem;
    color: hsl(var(--accent));
}

/* FAQ Section */
.seo-faq-section {
    background-color: hsl(var(--card));
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    padding: 1.25rem;
}

.seo-faq-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    text-align: center;
}

.seo-faq-item {
    border-bottom: 1px solid hsl(var(--border));
}

.seo-faq-item:last-child {
    border-bottom: none;
}

.seo-faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}

.seo-faq-question:hover {
    color: hsl(var(--accent));
}

.seo-faq-question-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    padding-right: 1rem;
}

.seo-faq-chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
    transition: transform 0.2s;
}

.seo-faq-chevron.open {
    transform: rotate(180deg);
}

.seo-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.2s, opacity 0.2s;
}

.seo-faq-answer.open {
    grid-template-rows: 1fr;
    opacity: 1;
    padding-bottom: 1rem;
}

.seo-faq-answer-inner {
    overflow: hidden;
}

.seo-faq-answer-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
}

/* Responsive design */
@media (max-width: 768px) {
    .title {
        font-size: 1.875rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .chip {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .seo-hero-title {
        font-size: 1.25rem;
    }
    
    .seo-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================= */
/* Limit Reached Modal Styles    */
/* ============================= */

.limit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: limitModalFadeIn 0.2s ease-out;
}

.limit-modal-overlay.open {
    display: flex;
}

@keyframes limitModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.limit-modal {
    position: relative;
    width: 92vw;
    max-width: 400px;
    background: #fff;
    border: 1px solid hsl(0, 0%, 90%);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    animation: limitModalSlideUp 0.3s ease-out;
}

@keyframes limitModalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.limit-modal-close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 13px;
    color: hsl(0, 0%, 60%);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.limit-modal-close-button:hover {
    color: hsl(0, 0%, 30%);
}

.limit-modal-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(0, 0%, 45%);
}

.limit-modal-title {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #0a0a0a;
    line-height: 1.3;
}

.limit-modal-countdown-wrap {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.limit-modal-countdown-ring {
    position: relative;
    width: 112px;
    height: 112px;
}

.limit-modal-countdown-ring-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid hsl(0, 0%, 90%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.limit-modal-countdown-time {
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #0a0a0a;
}

.limit-modal-countdown-svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
    width: 112px;
    height: 112px;
}

.limit-modal-countdown-svg circle {
    fill: none;
    stroke: hsl(17, 82%, 59%);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.limit-modal-countdown-subtext {
    margin-top: 12px;
    font-size: 12px;
    color: hsl(0, 0%, 45%);
}

.limit-modal-upsell-box {
    margin-top: 24px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid hsl(0, 0%, 90%);
    background: hsl(0, 0%, 99%);
}

.limit-modal-upsell-box p {
    font-size: 14px;
    color: hsl(0, 0%, 45%);
    margin: 0;
}

.limit-modal-upsell-box span {
    color: #0a0a0a;
    font-weight: 500;
}

.limit-modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.limit-modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    border: none;
    font-family: inherit;
}

.limit-modal-btn:hover {
    opacity: 0.9;
}

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

.limit-modal-btn-primary {
    background: hsl(17, 82%, 59%);
    color: white;
}

.limit-modal-btn-outline {
    background: transparent;
    color: #0a0a0a;
    border: 1px solid hsl(0, 0%, 85%);
}

/* Responsive for modal */
@media (max-width: 480px) {
    .limit-modal {
        width: 95vw;
        padding: 20px;
    }

    .limit-modal-title {
        font-size: 18px;
    }

    .limit-modal-countdown-ring {
        width: 96px;
        height: 96px;
    }

    .limit-modal-countdown-svg {
        width: 96px;
        height: 96px;
    }

    .limit-modal-countdown-time {
        font-size: 20px;
    }

    .limit-modal-actions {
        flex-direction: column;
        gap: 8px;
    }

    .limit-modal-btn {
        width: 100%;
    }
}
