/* ================================================
   A² Sites Wizard - Beautiful Dark Theme CSS
   Version: 3.1.0 - Fixed animations and transitions
   ================================================ */

:root {
    --a2-primary: #00cdfb;
    --a2-primary-dark: #007e99;
    --a2-bg-dark: #0c0c0c;
    --a2-bg-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    --a2-text-light: #ffffff;
    --a2-text-muted: #e3e3e3;
    --a2-border: rgba(255, 255, 255, 0.1);
    --a2-card-bg: rgba(255, 255, 255, 0.03);
    --a2-success: #00cdfb;
    --a2-purple: #322299;
}

/* Base Container */
.a2w-wrap {
    font-family: 'Roboto', sans-serif;
    background: var(--a2-bg-gradient);
    color: var(--a2-text-light);
    padding: 60px 15px;
    min-height: 100vh;
    position: relative;
}

.a2w-wrap * {
    box-sizing: border-box;
}

/* Header - No animation to prevent side-loading */
.a2w-header {
    text-align: center;
    margin-bottom: 60px;
}

.a2w-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    font-weight: 700;
    margin: 0 0 20px 0;
	color: #ffffff;
}

.a2w-header p {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0;
}

/* Main Wizard Container */
.a2w-wizard {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--a2-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--a2-border);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Progress Steps */
.a2w-steps {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    gap: 40px;
    border-bottom: 1px solid var(--a2-border);
}

.a2w-steps > div {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
    padding: 0 16px;
}

.a2w-steps > div.current,
.a2w-steps > div.done {
    opacity: 1;
}

.a2w-steps > div::before {
    content: attr(data-step);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--a2-border);
    color: var(--a2-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.a2w-steps > div.current::before {
    background: linear-gradient(135deg, var(--a2-primary), var(--a2-primary-dark));
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.a2w-steps > div.done::before {
    background: linear-gradient(135deg, #0099cc, #007aa6);
    border-color: transparent;
    color: white;
    content: '✓';
}

/* Step Content - Simple opacity transition only */
.a2w-step {
    display: none;
    padding: 30px 15px;
}

.a2w-step.active {
    display: block;
}

.a2w-stephead {
    text-align: center;
    margin-bottom: 50px;
}

.a2w-stephead h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    font-weight: 700 !important;
    color: var(--a2-text-light);
    margin: 0 0 16px 0;
}

.a2w-stephead p {
    color: var(--a2-text-muted);
    font-size: 1.125rem;
}

/* Billing Toggle */
.a2w-toggle-row {
    text-align: center;
    margin-bottom: 50px;
}

.a2w-toggle {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    border: 1px solid var(--a2-border);
}

.a2w-toggle input {
    display: none;
}

.a2w-toggle label {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    color: var(--a2-text-muted);
    transition: all 0.3s ease;
}

.a2w-toggle input:checked + label {
    background: linear-gradient(135deg, var(--a2-primary), var(--a2-primary-dark));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* Plan Cards - 4 Column Layout */
.a2w-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.a2w-card {
    position: relative;
    background: var(--a2-card-bg);
    border: 2px solid var(--a2-border);
    border-radius: 20px;
    padding: 35px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.a2w-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.a2w-card.selected {
    border-color: var(--a2-primary);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.a2w-card h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--a2-text-light);
    margin: 0 0 20px 0;
	text-align: left;
}

.a2w-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--a2-text-light);	
    background: linear-gradient(135deg, var(--a2-primary), var(--a2-primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1;
	text-align: left;
}

.a2w-price-unit {
    font-size: 1.25rem;
    opacity: 0.7;
}

.a2w-features {
    text-align: left;
    margin: 25px 0;
    list-style: none;
    padding: 0;
}

.a2w-features li {
    padding: 8px 0;
    color: #e3e3e3;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.4;
}

.a2w-features li:last-child {
    border-bottom: none;
}

.a2w-features li::before {
    content: '✓';
    color: var(--a2-success);
    font-weight: bold;
    flex-shrink: 0;
}

/* Popular Badge */
.a2w-badge {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--a2-purple), #4a33cc);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(50, 34, 153, 0.4);
}

.a2w-cta {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--a2-primary), var(--a2-primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.a2w-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Templates */
.a2w-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.a2w-templates .a2w-card {
    padding: 0;
    overflow: hidden;
}

.a2w-template-preview {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
}

.a2w-template-name {
    padding: 24px;
    font-weight: 600;
    color: var(--a2-text-light);
    text-align: center;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.3);
}

/* Domain Section */
.a2w-domain {
    max-width: 700px;
    margin: 0 auto;
}

/* Domain Tabs */
.a2w-domain-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 12px;
}

.a2w-domain-tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    color: var(--a2-text-muted);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.a2w-domain-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.a2w-domain-tab.active {
    background: linear-gradient(135deg, var(--a2-primary), var(--a2-primary-dark));
    color: white;
}

/* Domain Content Areas */
.a2w-domain-content {
    display: none;
}

.a2w-domain-content.active {
    display: block;
}

.a2w-domain-row {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

/* Domain Input Styles for Both Tabs */
#a2w-new-input,
#a2w-existing-input {
    flex: 1;
    padding: 16px 20px !important;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--a2-border);
    border-radius: 12px 0 0 12px !important;
    font-size: 1.1rem !important;
    color: var(--a2-text-light);
    transition: all 0.3s ease;
    margin-bottom: 0px !important;
}

#a2w-new-input:focus,
#a2w-existing-input:focus {
    outline: none;
    border-color: var(--a2-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

#a2w-new-check,
#a2w-existing-apply {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--a2-primary), var(--a2-primary-dark));
    color: white;
    border: none;
    border-radius: 0 12px 12px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

#a2w-new-check:hover,
#a2w-existing-apply:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

#a2w-new-check:disabled,
#a2w-existing-apply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: scale(1);
}

/* Domain Results Area */
#a2w-new-results,
#a2w-existing-status {
    margin: 20px 0;
    min-height: 60px;
}

.a2w-domain-available,
.a2w-domain-taken,
.a2w-domain-existing {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    text-align: center;
}

.a2w-domain-available {
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.a2w-domain-available p:first-child {
    font-size: 1.2rem;
    color: #00d4ff;
    margin-bottom: 10px;
}

.a2w-domain-available strong {
    color: var(--a2-text-light);
}

.a2w-domain-add {
    margin-top: 15px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.a2w-domain-add:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.a2w-domain-add:disabled {
    background: #28a745;
    cursor: default;
    transform: scale(1);
}

.a2w-domain-taken {
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.a2w-domain-taken p:first-child {
    font-size: 1.2rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.a2w-domain-taken strong {
    color: var(--a2-text-light);
}

.a2w-domain-existing {
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.a2w-domain-existing p {
    color: #00d4ff;
    font-size: 1.1rem;
}

.a2w-domain-existing strong {
    color: var(--a2-text-light);
}

/* Order Summary */
.a2w-summary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--a2-border);
    border-radius: 16px;
    padding: 40px;
    margin-top: 50px;
}

.a2w-summary h3 {
    color: var(--a2-text-light);
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.a2w-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--a2-text-muted);
}

.a2w-row:last-child {
    border-bottom: none;
}

.a2w-row.total {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    margin-top: 16px;
    padding-top: 20px;
}

.a2w-row span:last-child {
    color: var(--a2-primary);
    font-weight: 600;
}

.a2w-row.total span:last-child {
    font-size: 1.5rem;
}

/* Action Buttons */
.a2w-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.a2w-back {
    padding: 16px 32px;
    background: transparent;
    color: var(--a2-text-muted);
    border: 1px solid var(--a2-border);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.a2w-back:hover {
    color: var(--a2-text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.a2w-skip-template,
.a2w-skip-domain {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--a2-text-muted);
    border: 1px solid var(--a2-border);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.a2w-skip-template:hover,
.a2w-skip-domain:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--a2-text-light);
}

.a2w-finish {
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--a2-primary), var(--a2-primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.a2w-finish:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Loading */
.a2w-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--a2-text-muted);
}

.a2w-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--a2-border);
    border-top: 3px solid var(--a2-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Simple Animations - No transforms that cause side-loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .a2w-plans {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .a2w-header h1 { 
        font-size: clamp(1.8rem, 2.5vw, 2.5rem) !important; 
    }
    
    .a2w-plans { 
        grid-template-columns: 1fr; 
    }
    
    .a2w-templates { 
        grid-template-columns: 1fr; 
    }
    
    .a2w-steps { 
        flex-direction: column; 
        gap: 20px; 
    }
    
    .a2w-actions { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 15px;
    }
    
    .a2w-actions > * {
        width: 100%;
        text-align: center;
    }
    
    .a2w-domain-row { 
        flex-direction: column; 
    }
    
    #a2w-new-input,
    #a2w-existing-input {
        border-radius: 12px 12px 0 0;
    }
    
    #a2w-new-check,
    #a2w-existing-apply {
        border-radius: 0 0 12px 12px;
    }
    
    .a2w-domain-tabs {
        flex-direction: column;
    }
}

.a2w-domain-unsupported {
    padding: 20px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 12px;
    text-align: center;
}

.a2w-domain-unsupported p:first-child {
    font-size: 1.2rem;
    color: #ff9800;
    margin-bottom: 10px;
}

.a2w-domain-unsupported strong {
    color: var(--a2-text-light);
}

.a2w-domain-error {
    padding: 20px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    text-align: center;
}

.a2w-domain-error p:first-child {
    font-size: 1.1rem;
    color: #f44336;
    margin-bottom: 10px;
}

