.oc-wrapper { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
.oc-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); overflow: hidden; }
.oc-main { max-width: 900px; margin: -40px auto 40px; padding: 0 20px; position: relative; z-index: 2; }

/* Tabs */
.oc-tabs { display: flex; border-bottom: 2px solid #f0f0f0; }
.oc-tab { flex: 1; padding: 16px 24px; background: none; border: none; font-size: 15px; font-weight: 600; color: #9ca3af; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; position: relative; }
.oc-tab:hover { color: #4b5563; }
.oc-tab.active { color: #3b82f6; }
.oc-tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 3px; background: #3b82f6; border-radius: 3px 3px 0 0; }
.oc-tab-icon { width: 18px; height: 18px; }

/* Tab Content */
.oc-tab-panel { display: none; animation: ocFadeIn 0.25s ease; }
.oc-tab-panel.active { display: block; }
@keyframes ocFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Textarea */
.oc-textarea { width: 100%; min-height: 280px; border: none; padding: 24px; font-size: 16px; font-family: inherit; line-height: 1.7; color: #1f2937; resize: vertical; outline: none; background: #fff; }
.oc-textarea::placeholder { color: #d1d5db; }
.oc-advanced-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 24px 18px; }
.oc-option-field label { display: block; font-size: 12px; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.oc-option-field input { width: 100%; border: 1px solid #d1d5db; border-radius: 10px; padding: 11px 12px; font-size: 14px; color: #111827; outline: none; background: #fff; }
.oc-option-field input:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }
.oc-option-field small { display: block; margin-top: 6px; font-size: 12px; color: #64748b; font-weight: 600; }
.oc-option-field small.oc-file-ok { color: #16a34a; }
.oc-option-field small.oc-file-error { color: #dc2626; }

/* Footer bar */
.oc-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 24px; background: #f9fafb; border-top: 1px solid #f0f0f0; }
.oc-stats { display: flex; gap: 20px; font-size: 13px; color: #6b7280; }
.oc-stats span { font-weight: 600; color: #374151; }
.oc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.oc-btn { padding: 10px 20px; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.oc-btn-blue { background: #3b82f6; color: #fff; }
.oc-btn-blue:hover { background: #2563eb; box-shadow: 0 4px 14px rgba(59,130,246,0.3); }
.oc-btn-disabled,
.oc-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.oc-btn-disabled:hover,
.oc-btn:disabled:hover { background: #3b82f6; box-shadow: none; }
.oc-btn-gray { background: #f3f4f6; color: #374151; }
.oc-btn-gray:hover { background: #e5e7eb; }
.oc-btn-red { background: #fef2f2; color: #ef4444; }
.oc-btn-red:hover { background: #fee2e2; }
.oc-btn-full { width: 100%; justify-content: center; padding: 16px; font-size: 16px; }

/* Retrieve panel */
.oc-retrieve { padding: 32px 24px; }
.oc-retrieve-header { text-align: center; margin-bottom: 28px; }
.oc-retrieve-header h3 { font-size: 22px; font-weight: 700; color: #1f2937; margin: 0 0 6px; }
.oc-retrieve-header p { font-size: 14px; color: #6b7280; margin: 0; }
.oc-code-input { width: 100%; padding: 18px; border: 2px solid #e5e7eb; border-radius: 14px; font-size: 24px; font-weight: 700; text-align: center; letter-spacing: 10px; text-transform: uppercase; outline: none; transition: all 0.2s; background: #f9fafb; font-family: 'Inter', monospace; }
.oc-code-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.1); background: #fff; }
.oc-code-input::placeholder { letter-spacing: 4px; font-size: 16px; font-weight: 500; color: #d1d5db; }
.oc-retrieve-password { margin-top: 16px; }
.oc-retrieve-password label { display: block; font-size: 12px; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.oc-retrieve-password input { width: 100%; border: 1px solid #d1d5db; border-radius: 12px; padding: 14px 16px; font-size: 15px; color: #111827; outline: none; background: #ffffff; }
.oc-retrieve-password input:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }
.oc-retrieve-actions { display: flex; gap: 10px; margin-top: 20px; }
.oc-retrieve-actions .oc-btn { flex: 1; padding: 16px; font-size: 15px; justify-content: center; }

/* Result box */
.oc-result { margin-top: 24px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 20px; }
.oc-result-label { font-size: 13px; font-weight: 600; color: #16a34a; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.oc-result-text { background: #fff; border: 1px solid #dcfce7; border-radius: 10px; padding: 16px; font-size: 15px; color: #1f2937; line-height: 1.6; max-height: 200px; overflow-y: auto; white-space: pre-wrap; }

/* History */
.oc-history { margin-top: 24px; }
.oc-history-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: #f9fafb; border-bottom: 1px solid #f0f0f0; }
.oc-history-header h4 { margin: 0; font-size: 15px; font-weight: 600; color: #374151; }
.oc-history-list { max-height: 350px; overflow-y: auto; padding: 12px; }
.oc-history-item { background: #f9fafb; border: 1px solid #f0f0f0; border-radius: 10px; padding: 14px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
.oc-history-item:hover { background: #fff; border-color: #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.oc-history-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.oc-history-time { font-size: 12px; color: #9ca3af; }
.oc-history-btns { display: flex; gap: 6px; }
.oc-history-btns button { background: #fff; border: 1px solid #e5e7eb; color: #6b7280; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.oc-history-btns button:hover { background: #f3f4f6; color: #374151; }
.oc-history-preview { font-size: 13px; color: #4b5563; line-height: 1.4; overflow: hidden; max-height: 40px; white-space: pre-wrap; }
.oc-empty { text-align: center; padding: 40px 20px; color: #9ca3af; }
.oc-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.oc-empty p { margin: 4px 0; }

.oc-premium-details {
    margin: 42px 0;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 52%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.oc-premium-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
}

.oc-premium-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.oc-premium-heading h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
}

.oc-premium-heading p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

.oc-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.oc-premium-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.oc-premium-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 16px;
}

.oc-premium-icon-blue { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.oc-premium-icon-purple { background: linear-gradient(135deg, #7c3aed, #db2777); }
.oc-premium-icon-green { background: linear-gradient(135deg, #059669, #14b8a6); }

.oc-premium-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 19px;
    font-weight: 800;
}

.oc-premium-card p,
.oc-premium-card li {
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.oc-premium-card p {
    margin: 0 0 14px;
}

.oc-premium-card ul {
    margin: 0 0 16px;
    padding-left: 18px;
}

.oc-premium-card li {
    margin-bottom: 8px;
}

.oc-premium-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.oc-premium-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px dashed #93c5fd;
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .oc-main { padding: 0 12px; margin-top: -24px; }
    .oc-textarea { min-height: 200px; padding: 16px; }
    .oc-advanced-options { grid-template-columns: 1fr; padding: 0 16px 16px; }
    .oc-footer { padding: 12px 16px; }
    .oc-retrieve { padding: 24px 16px; }
    .oc-code-input { font-size: 20px; letter-spacing: 6px; }
    .oc-premium-details { padding: 20px; }
    .oc-premium-heading h2 { font-size: 24px; }
    .oc-premium-grid { grid-template-columns: 1fr; }
}
