.apc-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.apc-card {
    background: #0b1020;
    color: #f7f7ff;
    border-radius: 18px;
    padding: 24px 24px 28px;
    box-shadow: 0 18px 45px rgba(8, 15, 40, 0.8);
    margin-bottom: 24px;
    border: 1px solid rgba(120, 158, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.apc-card::before {
    content: "";
    position: absolute;
    inset: -80%;
    background: radial-gradient(circle at top left, rgba(90, 180, 255, 0.16), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.apc-card * {
    position: relative;
    z-index: 2;
}

.apc-title {
    font-size: 26px;
    margin: 0 0 8px;
}

.apc-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 18px;
}

.apc-label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.apc-textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(141, 178, 255, 0.45);
    background: rgba(3, 8, 24, 0.96);
    color: #f7f7ff;
    padding: 12px 14px;
    font-size: 14px;
    resize: vertical;
    min-height: 140px;
    outline: none;
    box-shadow: inset 0 0 0 1px transparent;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.1s ease;
}

.apc-textarea:focus {
    border-color: #7aa4ff;
    box-shadow: 0 0 0 1px rgba(122, 164, 255, 0.6);
    transform: translateY(-1px);
}

.apc-form-footer {
    display: flex;
    align-items: center;
    margin-top: 14px;
    gap: 10px;
}

.apc-button-primary {
    background: linear-gradient(135deg, #4b7bff, #8e6bff);
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 12px 30px rgba(73, 107, 255, 0.6);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.apc-button-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 16px 36px rgba(73, 107, 255, 0.8);
}

.apc-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(73, 107, 255, 0.7);
}

.apc-loader {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(200, 210, 255, 0.3);
    border-top-color: #8e6bff;
    animation: apc-spin 0.7s linear infinite;
}

@keyframes apc-spin {
    to {
        transform: rotate(360deg);
    }
}

.apc-card-results {
    background: radial-gradient(circle at top left, rgba(75, 123, 255, 0.18), #050717);
}

.apc-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.apc-results-header h3 {
    margin: 0;
    font-size: 20px;
}

.apc-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(29, 209, 161, 0.13);
    color: #9ff7da;
    border: 1px solid rgba(159, 247, 218, 0.45);
}

.apc-score-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 20px;
    margin-bottom: 24px;
}

.apc-score-main {
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 33, 80, 0.85), rgba(16, 20, 52, 0.96));
    box-shadow: inset 0 0 0 1px rgba(122, 164, 255, 0.4);
}

.apc-score-label {
    font-size: 13px;
    opacity: 0.85;
    margin: 0 0 10px;
}

.apc-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 7px solid rgba(144, 189, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    background:
        conic-gradient(from 210deg, rgba(88, 207, 227, 0.8), rgba(77, 127, 255, 1), rgba(200, 160, 255, 0.9));
    box-shadow: 0 14px 35px rgba(60, 110, 255, 0.7);
}

.apc-score-circle span {
    font-size: 32px;
    font-weight: 700;
}

.apc-score-circle small {
    font-size: 13px;
    opacity: 0.9;
    margin-left: 4px;
}

.apc-summary-text {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.apc-score-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apc-score-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.3fr) auto;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.apc-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(32, 42, 80, 0.9);
    overflow: hidden;
}

.apc-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #4b7bff, #8e6bff);
    transition: width 0.4s ease;
}

.apc-score-value {
    font-weight: 600;
    font-size: 12px;
    opacity: 0.9;
}

.apc-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.apc-column h4 {
    margin: 0 0 8px;
    font-size: 15px;
}

.apc-section {
    margin-top: 12px;
}

.apc-section h4 {
    margin: 0 0 6px;
    font-size: 15px;
}

.apc-section-description {
    margin: 0 0 8px;
    font-size: 12px;
    opacity: 0.8;
}

.apc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.apc-list li {
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(10, 16, 40, 0.9);
    border: 1px solid rgba(120, 158, 255, 0.25);
}

.apc-list-warning li {
    border-color: rgba(255, 124, 124, 0.6);
    background: rgba(40, 12, 18, 0.9);
}

.apc-list-suggestions li {
    border-color: rgba(60, 210, 160, 0.7);
    background: rgba(12, 36, 30, 0.9);
}

.apc-improved-textarea {
    min-height: 120px;
    margin-bottom: 8px;
}

.apc-button-secondary {
    background: transparent;
    border-radius: 999px;
    border: 1px solid rgba(160, 190, 255, 0.7);
    padding: 8px 16px;
    font-size: 13px;
    color: #e2e7ff;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.1s ease;
}

.apc-button-secondary:hover {
    background: rgba(160, 190, 255, 0.12);
    transform: translateY(-1px);
}

.apc-copy-feedback {
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.85;
    color: #9ff7da;
}

.apc-error-message {
    background: rgba(255, 80, 80, 0.09);
    border: 1px solid rgba(255, 136, 136, 0.65);
    color: #ffd7d7;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
}

.apc-hidden {
    display: none;
}

@media (max-width: 900px) {
    .apc-score-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .apc-card {
        padding: 18px 16px 20px;
    }
    .apc-title {
        font-size: 22px;
    }
    .apc-score-circle {
        width: 100px;
        height: 100px;
    }
}
