:root {
    --color-primary: #edac15;
    --color-accent: #edac15;
    --color-bg-alt: #f8f9fa;
    --color-text-muted: #666;

    --radius-md: 8px;
    --radius-lg: 16px;

    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
}

.modern-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.modern-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.modern-header-inner {
    max-width: 700px;
    margin: 0 auto;
}

.modern-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.modern-header p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.modern-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.modern-form-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 100%;
}

.modern-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: 0.2s ease;
    width: 100%;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.modern-card-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.modern-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #edac15, #ffcc33);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.modern-card select,
.modern-card input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
}

.modern-card select:focus,
.modern-card input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.modern-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #edac15, #ffcc33);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: var(--space-lg);
}

.modern-live-top {
    position: fixed;
    top: 180px;
    z-index: 9999;
    right: 10px;
}

.modern-results-section {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.modern-results-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 2px solid var(--color-primary);
}

.modern-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.modern-result-box {
    background: var(--color-bg-alt);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    text-align: center;
}

.modern-result-main {
    background: linear-gradient(135deg, #edac15, #ffcc33);
    color: #fff;
}

.modern-result-label {
    font-size: 1rem;
    display: block;
    margin-left: 30px;
}

.modern-result-value {
    font-size: 1.6rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.modern-result-value.updated {
    transform: scale(1.05);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table td {
    padding: 6px;
    border: 1px solid #eee;
}

.modern-example-section,
.modern-data-section,
.modern-info-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 2px solid #e5e7eb;
    box-shadow: 0 6px 25px rgba(0,0,0,0.05);
    margin-bottom: var(--space-lg);
}

.modern-grid > div {
    width: 100%;
}

.modern-comparison-table {
    width: 100%;
    padding: 5px;
}

.modern-comparison-table th {
    background-color: var(--color-primary);
    color: #fff
}

.modern-comparison-table th,
.modern-comparison-table td {
    border: 1px solid #ccc;
    padding: 5px;
}

.modern-data-block {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

p.modern-data-note,
.modern-info-card,
.modern-example-section {
    font-size: 13px;
}

.modern-example-card {
    p {
        margin-top: 0;
        margin-bottom: 0px;
    }
}

.modern-live-close {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 28px;
    height: 28px;
    border: 1px solid #666;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modern-live-close:hover {
    background: rgba(0,0,0,0.12);
    transform: scale(1.05);
    border: 1px solid #666;
}