* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 24px;
    color: #202124;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    overflow: hidden;
}

.header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1 {
    font-size: 28px;
    font-weight: 400;
    color: #202124;
    margin: 0;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
}

.status-badge.premium {
    background: #e8f5e9;
    color: #1e8e3e;
}

.status-badge.free {
    background: #e3f2fd;
    color: #1967d2;
}

.badge-icon {
    font-size: 18px;
}

.badge-text {
    letter-spacing: 0.25px;
}

/* Upgrade Section */
.upgrade-section {
    padding: 24px 32px 6px 32px;
}

.upgrade-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1967d2 0%, #1557b0 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(25, 103, 210, 0.3);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.upgrade-button:hover {
    background: linear-gradient(135deg, #1557b0 0%, #1346a0 100%);
    box-shadow: 0 4px 16px rgba(25, 103, 210, 0.4);
    transform: translateY(-2px);
}

.upgrade-button svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Upgrade Messages */
.upgrade-message {
    margin: 24px 32px 0;
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upgrade-message.success {
    background: #e8f5e9;
    border: 1px solid #81c995;
}

.upgrade-message.error {
    background: #fce8e6;
    border: 1px solid #f28b82;
}

.upgrade-message .message-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.upgrade-message .message-content {
    flex: 1;
}

.upgrade-message h3 {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #202124;
}

.upgrade-message.success h3 {
    color: #1e8e3e;
}

.upgrade-message.error h3 {
    color: #c5221f;
}

.upgrade-message p {
    font-size: 13px;
    color: #5f6368;
    margin: 0;
    line-height: 1.5;
}

/* Button Loading State */
.upgrade-button:disabled,
.upgrade-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.upgrade-button.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Review Request Section */
.review-request {
    margin: 24px 32px;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border: 2px solid #ffb74d;
    display: flex;
    gap: 16px;
    align-items: center;
    animation: slideIn 0.3s ease-out 0.2s both;
}

.review-request .review-icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.15) rotate(5deg);
    }
}

.review-request .review-content {
    flex: 1;
}

.review-request h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #e65100;
}

.review-request p {
    font-size: 14px;
    color: #5f6368;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.review-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.review-button:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.4);
    transform: translateY(-2px);
}

.review-button svg {
    animation: starRotate 3s ease-in-out infinite;
}

@keyframes starRotate {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

/* Benefits Section */
.benefits-section {
    padding: 0 32px 24px;
    margin-top: 24px;
}

.benefits-title {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 16px;
    letter-spacing: 0.1px;
}

.pricing-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    border: 2px solid #81c995;
}

.promo-badge {
    display: inline-block;
    background: #1e8e3e;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.price-container {
    margin-top: 8px;
}

.original-price {
    font-size: 16px;
    color: #5f6368;
    text-decoration: line-through;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.currency-option {
    font-weight: 500;
}

.price-separator {
    color: #9aa0a6;
}

.promo-price {
    font-size: 32px;
    font-weight: 700;
    color: #1e8e3e;
    letter-spacing: 1px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.benefit-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.2s ease;
    border: 1px solid #e8eaed;
}

.benefit-item:hover {
    background: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    border-color: #1967d2;
}

.benefit-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    stroke: #1967d2;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-size: 15px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.benefit-description {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.5;
}

.benefit-description strong {
    color: #1967d2;
    font-weight: 600;
}

/* Usage Statistics Section */
.usage-section {
    padding: 24px 32px;
    background: #f8f9fa;
    border-top: 1px solid #e8eaed;
}

.usage-section h2 {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 16px;
    letter-spacing: 0.1px;
}

.usage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.usage-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e8eaed;
    transition: all 0.2s ease;
}

.usage-item:hover {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    border-color: #1967d2;
}

.usage-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.usage-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usage-info {
    flex: 1;
}

.usage-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #5f6368;
    margin-bottom: 4px;
}

.usage-value {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1967d2 0%, #1557b0 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.usage-reset {
    font-size: 12px;
    color: #5f6368;
    text-align: right;
}

.info-grid {
    padding: 0 32px 24px;
}

.info-item {
    background: transparent;
    padding: 16px 0;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 16px;
}

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

.info-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.info-icon svg {
    stroke: #1967d2;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #5f6368;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 400;
    color: #202124;
    margin-top: 4px;
}

.info-subtext {
    font-size: 14px;
    color: #1e8e3e;
    font-weight: 400;
    margin-top: 4px;
}

.device-info {
    padding: 24px 32px 32px;
    background: #f8f9fa;
}

.device-info h2 {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 16px;
    letter-spacing: 0.1px;
}

.device-info h2::before {
    display: none;
}

.device-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.device-item {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: box-shadow 0.2s ease;
}

.device-item:hover {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    border-color: #dadce0;
}

.device-item.full-width {
    grid-column: 1;
}

.device-icon {
    font-size: 24px;
    flex-shrink: 0;
    opacity: 0.7;
}

.device-details {
    flex: 1;
}

.device-label {
    font-size: 12px;
    font-weight: 400;
    color: #5f6368;
    margin-bottom: 4px;
}

.device-value {
    font-size: 14px;
    font-weight: 400;
    color: #202124;
    line-height: 1.5;
}

.device-value.os-value {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #202124;
}

.error-message {
    text-align: center;
    padding: 48px 32px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.error-message h2 {
    font-size: 20px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 8px;
}

.error-message p {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 16px;
    line-height: 1.5;
}

.error-message code {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #202124;
    font-size: 13px;
    display: inline-block;
    border: 1px solid #e8eaed;
}

.footer {
    text-align: center;
    margin-top: 32px;
    color: #5f6368;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .card {
        border-radius: 8px;
    }

    .header {
        padding: 24px 20px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-left {
        gap: 10px;
    }

    .header h1 {
        font-size: 20px;
    }

    .logo {
        width: 32px;
        height: 32px;
    }

    .status-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .info-grid {
        padding: 0 20px 20px;
    }

    .device-info {
        padding: 20px;
    }

    .device-item {
        padding: 14px;
    }

    .benefits-section {
        padding: 0 20px 20px;
    }

    .pricing-box {
        padding: 16px;
    }

    .promo-price {
        font-size: 28px;
    }

    .benefit-item {
        padding: 14px;
    }

    .benefit-icon {
        width: 36px;
        height: 36px;
    }

    .benefit-icon svg {
        width: 20px;
        height: 20px;
    }

    .usage-section {
        padding: 20px;
    }

    .usage-item {
        padding: 14px;
    }

    .usage-icon {
        width: 36px;
        height: 36px;
    }

    .usage-icon svg {
        width: 20px;
        height: 20px;
    }

    .upgrade-section {
        padding: 20px 20px 6px 20px;
    }

    .upgrade-message {
        margin: 20px 20px 0;
    }

    .review-request {
        margin: 20px 20px 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #202124;
    }

    .card {
        background: #292a2d;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    }

    .header {
        border-bottom-color: #3c4043;
    }

    .header h1 {
        color: #e8eaed;
    }

    .status-badge.premium {
        background: #1e3a20;
        color: #81c995;
    }

    .status-badge.free {
        background: #1e3a5f;
        color: #8ab4f8;
    }

    .upgrade-button {
        background: linear-gradient(135deg, #8ab4f8 0%, #669df6 100%);
        color: #202124;
        box-shadow: 0 2px 8px rgba(138, 180, 248, 0.3);
    }

    .upgrade-button:hover {
        background: linear-gradient(135deg, #669df6 0%, #4285f4 100%);
        box-shadow: 0 4px 16px rgba(138, 180, 248, 0.4);
    }

    .info-item {
        border-bottom-color: #3c4043;
    }

    .info-icon svg {
        stroke: #8ab4f8;
    }

    .info-label {
        color: #9aa0a6;
    }

    .info-value {
        color: #e8eaed;
    }

    .info-subtext {
        color: #81c995;
    }

    .device-info {
        background: #202124;
    }

    .device-info h2 {
        color: #e8eaed;
    }

    .device-item {
        background: #292a2d;
        border-color: #3c4043;
    }

    .device-item:hover {
        border-color: #5f6368;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    }

    .device-label {
        color: #9aa0a6;
    }

    .device-value {
        color: #e8eaed;
    }

    .device-value.os-value {
        color: #e8eaed;
    }

    .error-message h2 {
        color: #e8eaed;
    }

    .error-message p {
        color: #9aa0a6;
    }

    .error-message code {
        background: #202124;
        color: #e8eaed;
        border-color: #3c4043;
    }

    .footer {
        color: #9aa0a6;
    }

    .benefits-section {
        background: #202124;
    }

    .benefits-title {
        color: #e8eaed;
    }

    .pricing-box {
        background: linear-gradient(135deg, #1e3a20 0%, #1e3a5f 100%);
        border-color: #81c995;
    }

    .promo-badge {
        background: #81c995;
        color: #202124;
    }

    .original-price {
        color: #9aa0a6;
    }

    .promo-price {
        color: #81c995;
    }

    .benefit-item {
        background: #292a2d;
        border-color: #3c4043;
    }

    .benefit-item:hover {
        background: #3c4043;
        border-color: #8ab4f8;
    }

    .benefit-icon {
        background: #1e3a5f;
    }

    .benefit-icon svg {
        stroke: #8ab4f8;
    }

    .benefit-title {
        color: #e8eaed;
    }

    .benefit-description {
        color: #9aa0a6;
    }

    .benefit-description strong {
        color: #8ab4f8;
    }

    .upgrade-message.success {
        background: #1e3a20;
        border-color: #81c995;
    }

    .upgrade-message.error {
        background: #3a1e1e;
        border-color: #f28b82;
    }

    .upgrade-message h3 {
        color: #e8eaed;
    }

    .upgrade-message.success h3 {
        color: #81c995;
    }

    .upgrade-message.error h3 {
        color: #f28b82;
    }

    .upgrade-message p {
        color: #9aa0a6;
    }

    .review-request {
        background: linear-gradient(135deg, #3a2e1e 0%, #4a3520 100%);
        border-color: #ff9800;
    }

    .review-request h3 {
        color: #ffb74d;
    }

    .review-request p {
        color: #9aa0a6;
    }

    .review-button {
        background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
        color: #202124;
    }

    .review-button:hover {
        background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
    }

    /* Usage Section Dark Mode */
    .usage-section {
        background: #202124;
        border-top-color: #3c4043;
    }

    .usage-section h2 {
        color: #e8eaed;
    }

    .usage-item {
        background: #292a2d;
        border-color: #3c4043;
    }

    .usage-item:hover {
        border-color: #8ab4f8;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    }

    .usage-icon {
        background: #1e3a5f;
    }

    .usage-label {
        color: #9aa0a6;
    }

    .usage-value {
        color: #e8eaed;
    }

    .progress-bar {
        background: #3c4043;
    }

    .progress-fill {
        background: linear-gradient(90deg, #8ab4f8 0%, #669df6 100%);
    }

    .usage-reset {
        color: #9aa0a6;
    }
}